RewriteEngine On
Вариант 1
RewriteCond %{HTTPS} =off
RewriteRule (.*) %{HTTP_HOST}%{REQUEST_URI} [QSA,L]
Вариант 2
RewriteCond %{SERVER_PORT} !^443$
RewriteRule .* %{SERVER_NAME}%{REQUEST_URI} [R,L]
Вариант 3
RewriteCond %{ENV:HTTPS} !on
RewriteRule ^(.*)$ %{HTTP_HOST}%{REQUEST_URI} [L,R=301]
Вариант 4
RewriteCond %{HTTP:X-HTTPS} !1
RewriteRule ^(.*)$ %{HTTP_HOST}/$1 [R=301,L]
Вариант 5
RewriteCond %{HTTP:CF-Visitor} '"scheme":"http"'
RewriteRule ^(.*)$ www.example.com/$1 [L] #не забудьте заменить на ваш домен
Вариант 6
RewriteCond %{HTTP:X-Forwarded-Protocol} !=https
RewriteRule .* %{SERVER_NAME}%{REQUEST_URI} [R=301,L]
Вариант 7.
RewriteCond %{HTTP:X-Forwarded-Proto} !https
RewriteCond %{HTTPS} off
RewriteRule ^ %{HTTP_HOST}%{REQUEST_URI} [L,R=301,NE]