How do I grant access to some IP numbers? This is really important to me. Is it possible to allow more than 1 IP number?
]]>Hi there.
I have tried to create a filter in my customizations plugin, but it doesn’t seem to take effect:
add_filter( ‘rtl_override_redirect’, function() {
return (strpos($_SERVER[REQUEST_URI], “export_events”) > 0);
});
If I hardcode the redirect plugin with this conditional before the actual filter chain, then it works:
if (!strpos($_SERVER[REQUEST_URI], “export_events”) > 0) {
if ( true !== $override ) {
is_user_logged_in() || auth_redirect();
}
} }
Is there some order or similar that is not correct then I add this to my general customization plugin rather than somwhere else?
This is with version 1.70
No matter if I said ‘is_front_page’, is_page(‘calendar’) or similar, if always sent me to the login page until I made the wrapper directly in the plugin as above ..?
There was a support issue regarding this.
I used Ultimate Member, however ultimate member doesn’t prevent users from accessing archives of custom post types.
I wanted to use this plugin with the custom filter, but it just infinite redirects. Is there anything I can do to fix this?
Thanks!
]]>Can i allow registration or a specific url so people can register?
I have tryied this code i found in the forum but it doesnt help.
add_action( 'parse_request', 'dmk_redirect_to_login_if_not_logged_in', 1 );
/**
* Redirects a user to the login page if not logged in.
* Added is_page() conditional
*
* @author Daan Kortenbach
*/
function dmk_redirect_to_login_if_not_logged_in() {
// If on this page, do not redirect
if ( is_page( 'change-me-to-page-slug' ) )
return;
// If on this post, do not redirect
if ( is_single( 'change-me-to-post-slug' ) )
return;
// Conditional(s) above were false, redirect
is_user_logged_in() || auth_redirect();
}
]]>
Is it possible to redirect to my custom login page instead of the wordpress login ? Where do I enter this information ?
Thank you,
Felipe
]]>Despite my best efforts, I can’t get any redirection on the posts (home) page while logged out. Is this plugin compatible with the latest WordPress?
Thanks.
Is it possible to redirect all visitors that are not logged in to a specific page or url?
https://www.ads-software.com/plugins/redirect-to-login-if-not-logged-in/
]]>Hi, I like your plugin, it works well in my web. But I need an special feature.
Actually, with your pluguin, visitors are immediately redirected to the login page .
I`d like let visitor look my page during 2 or 3 minuts (for example), and after this time redirect them to login page.
I think it will be a good feature for administrator in order to have more suscriptors.
How can I have this feature?
Maybe will you introduce it in your pluguin?
Or, maybe you can help me in order to add it in my web? (what codec line I must add to your pluguin)?
Thanks for you support.
https://www.ads-software.com/plugins/redirect-to-login-if-not-logged-in/
]]>Our website is still redirecting to the login page, even after we have deactivated and deleted the plugin. We have cleared the cache, but are still seeing the redirect. Please help us figure out how to remove this redirect.
https://www.ads-software.com/plugins/redirect-to-login-if-not-logged-in/
]]>Hi there,
I deleted the plugin but even then page is getting redirected. Please resolve as soon as possible.
https://www.ads-software.com/plugins/redirect-to-login-if-not-logged-in/
]]>hi Is there any way to redirect everything but not the home page
thanks
adam
https://www.ads-software.com/plugins/redirect-to-login-if-not-logged-in/
]]>If you have a custom login page, defined by filtering the login url, just as your plugin does:
add_filter( 'login_url', 'my_login_page', 10, 1 );
function my_login_page( $login_url ) {
return home_url( '/login/' );
}
Your plugin will send the site into an infinite loop as unless a site specifically uses wp-login.php there seems to be no loop checking on auth_redirect()
(which seems like a WP core bug to me, honestly).
In any case, your plugin can be made slightly less elegant but usable in these cases by adding a conditional around your logic statement. The function would also need to pass in the $query var (available as it’s using parse_request
as the action):
function dmk_redirect_to_login_if_not_logged_in( $query ) {
if ( home_url( '/' . $query->request . '/' ) != wp_login_url() ) {
is_user_logged_in() || auth_redirect();
}
}
https://www.ads-software.com/plugins/redirect-to-login-if-not-logged-in/
]]>I installed also the plugin Groups to separate my users into several access-restricted groups.
From time to time i’m sending out Newsletters with the links to the new articels.
Clicking on them builds links like….
https://localhost/wordpress/wp-login.php?redirect_to=http%3A%2F%2Flocalhost%2Fwordpress%2Fseitenupdate%2F&reauth=1
So the / is replaced with %2F…..
And when not deleting the reauth=1 at the end, the users get an error 403
The same error occurs, when logging out from my web…..403.
What side affect could this be?
Thanks in advance
Kai
https://www.ads-software.com/plugins/redirect-to-login-if-not-logged-in/
]]>Getting this error when I try to access the website after I activate the redirect plugin:
Request-URI Too Long
The requested URL’s length exceeds the capacity limit for this server.
https://www.ads-software.com/plugins/redirect-to-login-if-not-logged-in/
]]>Hi,
I am using this plugin and works great! Now I would like to see if I can redirect each user to a specific page?
I mean, if “Martín” log in redirect him to https://www.whatever.com/notes and if “Lauri” log in redirect him to https://www.whatever.com/whatever.
thanks!
https://www.ads-software.com/plugins/redirect-to-login-if-not-logged-in/
]]>Since it’s redirecting users would it make sense that it would redirect the robots also?
https://www.ads-software.com/plugins/redirect-to-login-if-not-logged-in/
]]>When I am trying to access an article on my password protected site, I get redirected to the login screen. Once I login, however, I am not taken to the original link I was trying to access. Is this not the function of this plugin?
https://www.ads-software.com/plugins/redirect-to-login-if-not-logged-in/
]]>Where do I set pages to redirect ? I can’t see anywhere to configure the plugin.
https://www.ads-software.com/plugins/redirect-to-login-if-not-logged-in/
]]>I’m wondering how could I allow certain pages to the non loggedin in users to not redirect when they access them, and the rest leave it as if they access page automatically redirect to the login page.
https://www.ads-software.com/plugins/redirect-to-login-if-not-logged-in/
]]>I like the plugin, but when I deactivate it, my blog is still redirecting to wp-login.php. How do I change it to go back to regular now?
https://www.ads-software.com/plugins/redirect-to-login-if-not-logged-in/
]]>