Answer the question
In order to leave comments, you need to log in
How to make mass redirects in a directory?
Let's say two links
/product/kolpachkovaya-kolonna-mednaya (old site)
and
/product-category/dlya-samogonshhika/alambiki-mednye/kolpachkovaya-kolonna-mednaya/ (new site)
directory is healthy. Tell me how to make a mass redirect from the old to the new . in fact, we have the same only symbolic product code.
Thanks.
I guess it's possible to go this way, but how do I replace nested categories with regular expressions?
in this example, you need to add to the regular expressions
dlya-samogonshhika/alambiki-mednye
RewriteEngine on
RewriteBase /
RewriteRule ^product/(.*)$ product-category/РЕГУЛЯРКА/РЕГУЛЯРКА/$1 [R=301]
Answer the question
In order to leave comments, you need to log in
It is not entirely clear which of them was what became.
Give me a couple of links, just as it was, it has become
There are no problems with regular expressions, everything can be inserted there
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question