RewriteEngine On
RewriteBase /
RewriteCond %{HTTP:X-HTTPS} !1
RewriteCond %{REQUEST_URI} !^/bitrix/admin/1cv7_exchange.php$
RewriteRule ^(.*)$ [URL=https://%{HTTP_HOST}/$1]https://%{HTTP_HOST}/$1[/URL] [R=301,L]
RewriteCond %{HTTP:X-HTTPS} 1 [NC]
RewriteCond %{REQUEST_URI} ^/bitrix/admin/1cv7_exchange.php$
RewriteRule ^(.*)$ [URL=http://%{HTTP_HOST}/$1]http://%{HTTP_HOST}/$1[/URL] [R=301,L]
мне помогло такое решение Правило в htaccess для редиректа сайта на https
RewriteBase /
RewriteCond %{HTTP:X-HTTPS} !1
RewriteCond %{REQUEST_URI} !^/bitrix/admin/1cv7_exchange.php$
RewriteRule ^(.*)$ [URL=https://%{HTTP_HOST}/$1]https://%{HTTP_HOST}/$1[/URL] [R=301,L]
RewriteCond %{HTTP:X-HTTPS} 1 [NC]
RewriteCond %{REQUEST_URI} ^/bitrix/admin/1cv7_exchange.php$
RewriteRule ^(.*)$ [URL=http://%{HTTP_HOST}/$1]http://%{HTTP_HOST}/$1[/URL] [R=301,L]
мне помогло такое решение Правило в htaccess для редиректа сайта на https