Force User Login
Redirect to blog url (2 posts)

  1. felipelavinz
    Posted 4 years ago #

    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


  2. deardooley
    Posted 3 years ago #

    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 );

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Force User Login
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic