• Hi,

    I have private pages on my site, but when non logged customer clicks on the page, it redirects to Not Found Page. How do I redirect that to login page instead ?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Put the url of login page in the settings of your access-/ membership plugin.

    Thread Starter rukcs

    (@rukcs)

    I’m not using any plugin ! it’s wordpress 3.5.1

    I put this code on top of 404.php

    <?php header("Location: http://www.mysite.com/login.php"); ?>
    exit();

    it works but not professional I guess since I’m editing the 404 page
    If any one could tell me where I can edit the code to redirect to login without changing the 404.php page

    Thanks,

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Redirect private page to login’ is closed to new replies.