Reset from https in .htaccess
-
There are two domains: http://one.ru and http://two.ru ♪ When we're moving on, we're gonna move on at:shttp://one.ru andsltwo.ru.
SetEnvIf X-HTTPS 1 HTTPS RewriteEngine On RewriteBase / RewriteCond %{HTTP:X-HTTPS} !1 RewriteRule ^(.*)$ https://%{HTTP_HOST}/$1 [R=301,L]
How to change .htaccess so that when it comes to transition http://two.ru There was no HTTPS redirection.
-
Used this:
RewriteRule http://one.ru/$ https://%{HTTP_HOST}/$1 [R=301,L]