B
B
BATPYIIIKOB2019-11-12 15:51:49
htaccess
BATPYIIIKOB, 2019-11-12 15:51:49

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]


Probably, it would be more correct to break all redirects into new ones? Those. make 2 from one?
Is there a way to leave it as is with minimal changes?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question