Support » Plugins and Hacks » WP Login redirecting to previously visited page

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hello????

    I found out the answer. All you need to do is place the following code into the non-wordpress page you would like to check for authentication and after login it will redirect you to the page you were previously on.

    <?php
    require('../wp-load.php');
    get_header();
    php auth_redirect();
    ?>
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘WP Login redirecting to previously visited page’ is closed to new replies.