Redirect not working
-
Hi, I have restricted content by shortcodes and I have setup a redirect to a login page but doesn’t works, this is the page where I have setup the shortcode http://irisagency.webmarketingagency.it/lezioni/
Can you help me please?
-
Unfortunately redirection does not work with shortcodes, but you can display content from another post/page in place of the restricted content for unauthorized users.
[restrict page="id here"][/page]If you want to use redirection, you’ll need to restrict the entire page with conditional logic under User Access.
Hi! I’m using redirection using conditional logic. The user is redirected to a page where I advise that he needs to log in to have access, but when the user logs in he is not redirected to the original link.
I’ve also tried using the shortcode [login-form] I didn’t include a redirect link on the shortcode because it should be dynamic (should be redirected to the original page he was trying to access.)It should be possible because the url shows “?redirect_to=http%3A%2F%2Fwww.niteroiense.org.br%2Fatividades%2Fprojeto-montanha-para-todos%2F” at the end…
Link for an example: http://www.niteroiense.org.br/atividades/projeto-montanha-para-todos/
Thanks!
-
This reply was modified 9 years, 4 months ago by
Mauro Mello.
Hi,
I’m also use the redirection with conditional logic. See below the options.
Extend: Do not Extend
Synchronized Role: Do not synchronize
Action: Redirect
Page: ForbiddenIt’s not working if the user is login (Subscriber Level) it’s always redirect in homepage not in Forbidden Page.
Thank you.
-
This reply was modified 9 years, 3 months ago by
Rocket Burn.
Do you have any other plugins on your site that adds similar or URL redirection functionality (and therefore might conflict with Restrict User Access)?
Can you show me a screenshot of your conditional logic? You can use imgur.com to paste images here.
And despite not being redirected correctly, is the restricted content working as intended (ie. unauthorized users do not have access)?Can you show me a screenshot of your conditional logic? You can use imgur.com to paste images here.
- Here’s the screenshot: http://prntscr.com/e9qky1
And despite not being redirected correctly, is the restricted content working as intended (ie. unauthorized users do not have access)?
- The restricted content is working fine. But redirecting is not.
Thanks.
Hi @intoxstudio
The redirecting to other page is only works if you use the wordpress menu access level options. http://prntscr.com/ea8cd2
Thanks.
Do you mean that it works by restricting a nav menu item? I think that might be a very odd bug.
On your first screenshot, it looks like you have restricted the “Forbidden” page and also set it to redirect to that page.
This means that an unauthorized users will be redirected to “Forbidden”, but because that page is also restricted, they can’t.
Can you try to remove the “Forbidden” page from the conditions?Hi @intoxstudio,
I have many others plugins installed but none that adds similar or URL redirection functionality…
Do you know how I could try to find if there is another plugin creating any conflict on this redirection? Any hook, filter, etc I could search for?Thanks
The easiest way to debug it would be to disable all other plugins, see if it works, and then activate them one by one. Would this be possible for you?
Restrict User Access has been tested with many of the most popular plugins, so you don’t need to deactivate those. -
This reply was modified 9 years, 4 months ago by
The topic ‘Redirect not working’ is closed to new replies.