K
K
Konstantin2015-11-10 13:42:34
htaccess
Konstantin, 2015-11-10 13:42:34

How to transfer a user from site.ru/category/product/ to site.ru/catalog/category/product/?

Hello!
Can you please tell me how to make a 301 redirect from site.ru/category/product/ to site.ru/ catalog/ category/product/ ? Those. before category/ the path catalog/ was added
- site.ru/category-1/product/ --> site.ru/catalog/category-1/product/
- site.ru/category-2/product/ --> site.ru /catalog/category-2/product/
- site.ru/category-3/product/ --> site.ru/catalog/category-3/product/ There are
more than 1000 categories and a universal solution is needed.
But it is important to consider that if we are already going to site.ru/catalog/category/product/ this path (catalog/) was not added . So that site.ru/catalog/catalog/category/product/ doesn't come out
I've been scratching my head for more than a week, I did not find a solution ...

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
Igor Shansky, 2015-11-10
@Amstor

Redirect 301 /catalog/category/product/site.ru/catalog/catalog/category/product/

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question