Answer the question
In order to leave comments, you need to log in
How to set up a mass redirect on the run?
I do a redirect on the run. How to properly set up a mass redirect?
doing so
<IfModule mod_rewrite.c>
Options +FollowSymLinks
RewriteEngine On
RewriteCond %{REQUEST_URI} ^/catalog/perchatki/$1
RewriteRule ^(.*)$ /catalog/ekipirovka/perchatki/$1 [R=301,L]
</IfModule>
Answer the question
In order to leave comments, you need to log in
firstly, if you select groups in RewriteCond, then they are substituted not as $1 but %1, since you can also collect RewriteRule groups, but in your case you can do without RewriteCond
RewriteEngine On
RewriteRule ^catalog/perchatki/(.*)$ /catalog/ekipirovka/perchatki/$1 [NC,R=301,L]
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question