Having a bit of trouble tracing down the cause of this annoyance. I have the following Redirect in one of my virtualhost conf files
<Virtualhost *:80> Redirect permanent / https://mysite.com/ </Virtualhost>
It works perfectly when I go to
But if I go to …
it bypasses the redirect completely and serves plain http on port 80
now, once it’s serving and using port 443, it continues to do so as expected.
So, if I initially go to just mysite.com, all is well. But I cannot guarantee visitors will do this so I need it to redirect to port 443 properly regardless of the URL they use to enter the site.
The problem only arises if I connect to mysite.com using any CFM file INITIALLY
I’m guessing that without a “CFM” file, the server treats it as it would any other non “CFM” file.
But once I designate a CFM file, MOD_CFML is intercepting before the redirect.
But again, once connected via port 443, it will continue to serve via port 443 for the rest of the Session.
What would you suggest I look at?