[Plugin: Force User Login Multisite] Invalid redirection to login page in a subdomain environment
-
Hi there,
I have set up a WordPress site in a subfolder of my website (e.g. mysite.com/blog) and after I activated this plugin I got redirected to e.g. mysite.com/wp-login.php. Since that file doesn’t exist I got Error 404.
Fortunately this issue can be resolved by a small change to the code:
On the bottom of
force-user-login-multisite/force-login-multisite.php
:header('Location: /wp-login.php?redirect_to=' . $redirect_to);
has to be changed to:
header('Location: ' . get_site_url() . '/wp-login.php?redirect_to=' . $redirect_to);
And now it works as it should!
Enjoy!http://wordpress.org/extend/plugins/force-user-login-multisite/
- The topic ‘[Plugin: Force User Login Multisite] Invalid redirection to login page in a subdomain environment’ is closed to new replies.