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

  1. oneweekwebsites
    Posted 4 years 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
    Posted 4 years 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.

Topic Closed

This topic has been closed to new replies.

About this Topic