Support » Plugin: Force User Login » [Plugin: Force User Login] Redirect to blog url

  • I’ve been using this plugin, but I have a problem that I think should be solved: when I first try to access a protected site by entering the URL on the browser’s address bar, I always get redirected to $_SERVER['HTTP_HOST'] .'/wp-admin/', which means that when the WordPress install it’s on a folder, it’s not properly redirected to the login page for that installation

    http://wordpress.org/extend/plugins/force-user-login/

Viewing 1 replies (of 1 total)
  • Changing line 58 to the following will solve this problem. This should probably be recommitted back into the plugin.

    header( 'Location: '.get_bloginfo('url').'/wp-login.php?redirect_to=' . $redirect_to );

Viewing 1 replies (of 1 total)
  • The topic ‘[Plugin: Force User Login] Redirect to blog url’ is closed to new replies.