Answer the question
In order to leave comments, you need to log in
How to properly set up old redirects in htaccess when moving to https?
Good afternoon. We transfer the site to https. There are old redirects. Tell me how to properly organize a redirect to https so that old redirects are not lost:
RewriteEngine On
RewriteBase /
RewriteCond %{HTTP_HOST} .
RewriteCond %{HTTP_HOST} !^www\.simple\.ru [NC]
RewriteRule (.*) http://www.simple.ru/$1 [R=301,L]
RewriteRule ^samsung.html moka-samsung.html [R=301,L]
RewriteRule ^lg.html soch-lg.html [R=301,L]
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question