Korusol
6/22/2018 - 2:00 PM

Редиректы с http на https

RewriteCond %{HTTPS} =off
RewriteCond %{HTTP_HOST} ^(.*)$ [NC]
RewriteRule (.*) https://www.usupovo-lp.ru/$1 [R=301,L]

RewriteCond %{HTTPS} on
RewriteCond %{HTTP_HOST} !^www\. [NC]
RewriteRule .* https://www.%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

для masterhost

RewriteCond %{HTTP:PORT} !^443$
RewriteCond %{HTTP_HOST} ^(.*)$ [NC]
RewriteRule (.*) https://www.maxick.ru/$1 [R=301,L]

RewriteCond %{HTTP:PORT} ^443$
RewriteCond %{HTTP_HOST} !^www\. [NC]
RewriteRule (.*) https://www.maxick.ru/$1 [R=301,L]