wp-admin redirect loop

Home Forums Redirect loops wp-admin redirect loop

This topic contains 4 replies, has 2 voices, and was last updated by  Ahmad Mushtaq 3 weeks ago.

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #2675 Reply

    Sami

    If I visit:

    http://example.com/wp-admin
    I get reidrected to
    https://example.com/wp-admin
    with the query string saying to send me back to http://example.com/wp-admin.

    After submitting it then sends me back to http://example.com/wp-admin which redirects me to https://example.com/wp-admin but it’s not logged in – so I go around in circles.

    Any tips/advice on how to fix this?

    #2677 Reply

    Rogier
    Keymaster

    Hi,

    Does it help if you add

    $_SERVER[“HTTPS”] = “on”;

    to your wp-config.php?

    #39481 Reply

    Waqas Rahman

    I also have the same issue

    #39612 Reply

    Rogier
    Keymaster

    What happens if you visit the admin direct over https?

    #267542 Reply

    Ahmad Mushtaq

    OMG! have been looking for the solution for 4 days and this one solved it! thank you so much. But I wonder why this issue never occurred to me before. I don’t remember adding $_SERVER[“HTTPS”] = “on”; to other sites we developed.

Viewing 5 posts - 1 through 5 (of 5 total)
Reply To: wp-admin redirect loop
Your information: