I have a script that handles several different redirects on a server with a snippet that looks like follows:
if($url == "http://www.url.com")
{header("Location: https://www.url.com/index.html");}
The script works exactly as intended with one issue - all of the https redirects end up redirecting to http (versus the https as defined).
Does anyone have any ideas what may be going on?