Answer the question
In order to leave comments, you need to log in
How to redirect from https to http?
Tried 2 options, none work
RewriteCond %{HTTP_HOST} ^www.domain.ru$ [NC]
RewriteRule ^(.*)$ http://domain.ru/$1 [R=301,L]
RewriteEngine On
RewriteCond %{HTTPS} on
RewriteCond %{REQUEST_URI} !^www.domain.ru$
RewriteCond %{REQUEST_URI} !^domain.ru$
RewriteRule (.*)$ http://domain.ru/$1 [R=301,L]
Answer the question
In order to leave comments, you need to log in
############################################################################
#### Перенаправляем протокол https на http ####
############################################################################
RewriteCond %{ENV:HTTPS} on
# Проверяем наличие https в URL.
RewriteRule ^.*$ http://%{SERVER_NAME}%{REQUEST_URI} [R=301,L]
# Перенаправляем протокол на http.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question