НАСТРОЙКА САЙТА ДЛЯ РАБОТЫ ПО HTTPS переходим с HTTP
RewriteEngine on
RewriteCond %{HTTP:HTTPS} !=on [NC]
RewriteRule ^(.*)$ https://yourdomain.com/$1 [R=301,L]
SetEnvIf X-Forwarded-Proto https HTTPS=on
НАСТРОЙКА САЙТА ДЛЯ РАБОТЫ ПО HTTPS переходим с HTTP
RewriteEngine on
RewriteCond %{HTTP:HTTPS} !=on [NC]
RewriteRule ^(.*)$ https://yourdomain.com/$1 [R=301,L]
SetEnvIf X-Forwarded-Proto https HTTPS=on