wp-admin redirect to wp-login broken with non-default SSL host
-
I use CloudFlare on my site and I don’t trust proxying SSL traffic via them, so I have my site set up to serve HTTP on https://www.example.com and HTTPS on secure.example.com. If the login form is forced onto HTTPS, then requesting https://www.example.com/wp-admin/ attempts to redirect to https://www.example.com/wp-login.php, which obviously fails.
I have a redirect configured in my webserver which sends https://www.example.com/wp-admin/* to https://secure.example.com/wp-login.php?redirect_to=https%3A%2F%2Fsecure.example.com%2Fwp-admin%2F&reauth=1, which mostly solves the issue, but it’d be handy if this was handled correctly by WordPress HTTPS.
- The topic ‘wp-admin redirect to wp-login broken with non-default SSL host’ is closed to new replies.