This is a question on
how to redirect https -> http,
NOT http -> https.
We are using a Cisco router for our wifi login. Our splash page is on our website, which is http. The router requires http. This works fine for android and windows, etc, but does not work for iOS and MacOS, which will will look for https and use it if possible.
The site is wordpress and the connection between the two load balancers and the VMs is http, so using $_SERVER['HTTPS'] wouldn't work, and using that or $_SERVER['HTTP_X_FORWARDED_PROTO'] - I believe may cause an infinite redirect on Apple OS's.
So, what I need is for the path /wifi-login/
to be redirected to http://
if it is https
. I think this needs to be done on the load balancer level.