Forums

Login page redirects to the login page? (2 posts)

  1. oneweekwebsites
    Member
    Posted 7 months ago #

    When a user enters their login details and clicks login on the wp-login.php page, the page directs straight back to the wp-login.php page, instead of my home page? What should I do? I have done small modifications to the wp-login.php page, but its only mainly to do with adding a navigation...

  2. websitezcom
    Member
    Posted 7 months ago #

    Pass in a GET variable "redirect_to" and the login page will perform the redirect for you. Make sure to encode the value to avoid any problems. PHP's urlencode() function. Javascript has one too that will work. EncodeURI and EncodeURIComponent if I am not mistaken.

Reply

You must log in to post.

About this Topic