Forums

Force User Login Multisite
Invalid redirection to login page in a subdomain environment (1 post)

  1. papaiatis
    Member
    Posted 4 months ago #

    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/

Reply

You must log in to post.

About this Plugin

About this Topic