B
B
brar2016-08-08 12:31:55
htaccess
brar, 2016-08-08 12:31:55

What does a 301 redirect rule look like?

Moved the site to another CMS.
In the old CMS, URLs looked like this:

https://mysitename.ru/categoriya1/117-product-name2.html
https://mysitename.ru/categoriya5/28-product-name6.html

In the new CMS - like this:
https://mysitename.ru/product-name2/
https://mysitename.ru/product-name6/

Etc.
Help, please, to make a rule for a redirect.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
Rsa97, 2016-08-08
@brar

Options +FollowSymLinks
RewriteEngine On

RewriteRule ^$/categoriya[0-9]+/[0-9]+-(product-name[0-9]+).html /$1 [L,R=301]

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question