rewrite in .htaccess has no effect
Posted: Fri Dec 18, 2015 11:09 am
I have this in a .htaccess file
So that visitors trying to access that site using https are redirected to http.
However, it seems to be ignored OR Vesta (using nginx as a proxy with Apache) is intercepting the https and redirecting it elsewhere.
Any https request for a non https site ends up on my first https domain :/
for example, lets say I have 2 domains, nonsecure.net and secure.net
nonsecure.net has no https. secure.net has https.
If i try https://nonseure.net the webpage returned is actually the site under https://secure.net...
Code: Select all
RewriteCond %{ENV:HTTPS} !1
RewriteRule ^(.*)$ https://%{HTTP_HOST}/%1
However, it seems to be ignored OR Vesta (using nginx as a proxy with Apache) is intercepting the https and redirecting it elsewhere.
Any https request for a non https site ends up on my first https domain :/
for example, lets say I have 2 domains, nonsecure.net and secure.net
nonsecure.net has no https. secure.net has https.
If i try https://nonseure.net the webpage returned is actually the site under https://secure.net...