The Support Forums will be in read-only mode for a scheduled maintenance window on 01 September 2016 14:00 UTC - 20:00 UTC. More information.

Function Reference/auth redirect (1 post)

  1. elboden
    Posted 2 years ago #


    I need a function that will redirect a client if the client isn't logged in, but I don't want the client to be redirected to /wp-login.php, but to another WordPress-install located on a subdomain of mine.

    I don't know very much PHP, but with Google I found this function:

    And I was wondering if it would work if I edited it so it would redirect to another URL than /wp-login.php. But I don't know how? Or if this is the best method of doing it...?

    <?php auth_redirect(); ?>

    Would you please give me tip on how to do it? :)


Topic Closed

This topic has been closed to new replies.

About this Topic