Jump to content

Редирект со старого сайта, в url есть /products/ и /catalog/

Recommended Posts

Здравствуйте, уважаемые жители форума! Не понимаю, как сделать редирект со старого сайта, урлы страниц которого содержат /products/ или /catalog/? Привожу код, который пробую:

RewriteRule ^/catalog/limestone$ /izvestnyak [R=301,nc]RewriteRule ^/catalog/marble$ /mramor [R=301,nc]RewriteRule ^/catalog/travertine-and-tuffs$ /travertin [R=301,nc]RewriteRule ^/catalog/granite$ /granit [R=301,nc]RewriteRule ^/products$ /catalog/izdeliya [R=301,nc]RewriteRule ^/products/windowsills$ /catalog/podokonniki [R=301,nc]RewriteRule ^/products/tabletops$ /catalog/stoleshnitsy [R=301,nc]RewriteRule ^/products/bar-counters$ /catalog/barnye-stojki [R=301,nc]RewriteRule ^/products/stone-staircases$ /catalog/lestnitsy [R=301,nc]RewriteRule ^/products/fasades-facing-elements$ /catalog/elementy-fasadov [R=301,nc]

Ставлю сразу после RewriteEngine On
Что нужно подправить, чтобы заработало?
Спасибо всем заранее.
Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...