Answer the question
In order to leave comments, you need to log in
How to make a redirect from the product card to a new url?
Good afternoon
We decided to change the url of the product card, we want to make a redirect, but it doesn’t work, tell me how to solve it?
Сейчас: https://domen/catalog/category/sub-cetegory/name-goods/?id=123
Делать редирект на: https://domen/catalog/category/sub-cetegory/products/name-goods/?id=123
Answer the question
In order to leave comments, you need to log in
RewriteCond %{QUERY_STRING} (?:^|&)id\=(.+)(?:$|&)
RewriteRule ^catalog/category/sub\-cetegory/name\-goods/$ /catalog/category/sub\-cetegory/products/name\-goods/\?id=%1 [L,R=301]
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question