Menu
i have an infinite loop issue using php’s header function with the following code:
[code=php]if($_SERVER[“HTTPS”] != “on”)
header(“Location: https://www.$_SERVER[SERVER_NAME]$_SERVER[REQUEST_URI]”);
on the bottom left hand side of my browser, i get “connected to site.com”, “waiting for site.com”, “connected to site.com” and this repeat until after 10 seconds of attempts, then it stops. any suggestions?
on the php header page, an individual wrote to turn RewriteLocation to 0, but i have no idea what RewriteLocation is.