Задать вопрос
@Kypidon4ik
Фрилансер, Wordpress developer

Правильно ли я сделал редиректы?

Сейчас почему то не редиректит....

RewriteEngine On
RewriteCond %{HTTP_HOST} https://name.lv/product-category/catalog/interior-doors/art-collection/
RewriteRule (.*) https://name.lv/product-category/interior-doors/art-collection/$1 [R=301,L]
RewriteCond %{HTTP_HOST} https://name.lv/product-category/catalog/interior-doors/classic/
RewriteRule (.*) https://name.lv/product-category/interior-doors/classic/$1 [R=301,L]
RewriteCond %{HTTP_HOST} https://name.lv/product-category/catalog/interior-doors/neoclassic/
RewriteRule (.*) https://name.lv/product-category/interior-doors/neoclassic/$1 [R=301,L]
RewriteCond %{HTTP_HOST} https://name.lv/product-category/catalog/floor-coverings/
RewriteRule (.*) https://name.lv/product-category/floor-coverings/$1 [R=301,L]
RewriteCond %{HTTP_HOST} https://name.lv/product-category/catalog/interior-doors/
RewriteRule (.*) https://name.lv/product-category/interior-doors/$1 [R=301,L]
RewriteCond %{HTTP_HOST} https://name.lv/product-category/catalog/interior-doors/art-collection/
RewriteRule (.*) https://name.lv/product-category/interior-doors/art-collection/$1 [R=301,L]
RewriteCond %{HTTP_HOST} https://name.lv/product-category/catalog/interior-doors/classic/
RewriteRule (.*) https://name.lv/product-category/interior-doors/classic/$1 [R=301,L]
RewriteCond %{HTTP_HOST} https://name.lv/product-category/catalog/interior-doors/neoclassic/
RewriteRule (.*) https://name.lv/product-category/interior-doors/neoclassic/$1 [R=301,L]
RewriteCond %{HTTP_HOST} https://name.lv/product-category/catalog/interior-doors/modern-style/	
RewriteRule (.*) https://name.lv/product-category/interior-doors/modern-style/$1 [R=301,L]
RewriteCond %{HTTP_HOST} https://name.lv/product-category/catalog/furniture/	
RewriteRule (.*) https://name.lv/product-category/furniture/$1 [R=301,L]
RewriteCond %{HTTP_HOST} https://name.lv/product-category/furniture/by-subject/dressers/	
RewriteRule (.*) https://name.lv/product-category/furniture/dressers/$1 [R=301,L]
RewriteCond %{HTTP_HOST} https://name.lv/product-category/furniture/by-subject/armchairs/	
RewriteRule (.*) https://name.lv/product-category/furniture/armchairs/$1 [R=301,L]
RewriteCond %{HTTP_HOST} https://name.lv/product-category/furniture/by-subject/armchairs/footrests/	
RewriteRule (.*) https://name.lv/product-category/furniture/armchairs/footrests/$1 [R=301,L]
RewriteCond %{HTTP_HOST} https://name.lv/product-category/furniture/by-subject/beds/	
RewriteRule (.*) https://name.lv/product-category/furniture/beds/$1 [R=301,L]
RewriteCond %{HTTP_HOST} https://name.lv/product-category/furniture/by-subject/beds/mattresses/	
RewriteRule (.*) https://name.lv/product-category/furniture/beds/mattresses/$1 [R=301,L]
RewriteCond %{HTTP_HOST} https://name.lv/product-category/furniture/by-subject/beds/bed-base/	
RewriteRule (.*) https://name.lv/product-category/furniture/beds/bed-base/$1 [R=301,L]
RewriteCond %{HTTP_HOST} https://name.lv/product-category/furniture/by-subject/bedside-tables/	
RewriteRule (.*) https://name.lv/product-category/furniture/bedside-tables/$1 [R=301,L]
RewriteCond %{HTTP_HOST} https://name.lv/product-category/furniture/by-subject/bench/	
RewriteRule (.*) https://name.lv/product-category/furniture/bench/$1 [R=301,L]
RewriteCond %{HTTP_HOST} ttps://name.lv/product-category/furniture/by-subject/shelving/	
RewriteRule (.*) https://name.lv/product-category/furniture/shelving/$1 [R=301,L]
RewriteCond %{HTTP_HOST} https://name.lv/product-category/furniture/by-subject/shelving/open-shelving/	
RewriteRule (.*) https://name.lv/product-category/furniture/shelving/open-shelving/$1 [R=301,L]
RewriteCond %{HTTP_HOST} https://name.lv/product-category/furniture/by-subject/tables/	
RewriteRule (.*) https://name.lv/product-category/furniture/tables/$1 [R=301,L]
RewriteCond %{HTTP_HOST} https://name.lv/product-category/furniture/by-subject/tables/bar-tables/	
RewriteRule (.*) https://name.lv/product-category/furniture/tables/bar-tables/$1 [R=301,L]
RewriteCond %{HTTP_HOST} https://name.lv/product-category/furniture/by-subject/tables/soffee-tables/	
RewriteRule (.*) https://name.lv/product-category/furniture/tables/soffee-tables/$1 [R=301,L]
RewriteCond %{HTTP_HOST} https://name.lv/product-category/furniture/by-subject/tables/dinner-tables/	
RewriteRule (.*) https://name.lv/product-category/furniture/tables/dinner-tables/$1 [R=301,L]
RewriteCond %{HTTP_HOST} https://name.lv/product-category/furniture/by-subject/tables/writing-tables/	
RewriteRule (.*) https://name.lv/product-category/furniture/tables/writing-tables/$1 [R=301,L]
RewriteCond %{HTTP_HOST} https://name.lv/product-category/furniture/by-subject/chairs/	
RewriteRule (.*) https://name.lv/product-category/furniture/chairs/$1 [R=301,L]
RewriteCond %{HTTP_HOST} https://name.lv/product-category/furniture/by-subject/chairs/bar-chairs/	
RewriteRule (.*) https://name.lv/product-category/furniture/chairs/bar-chairs/$1 [R=301,L]
RewriteCond %{HTTP_HOST} https://name.lv/product-category/furniture/by-subject/chairs/dinner-chairs/	
RewriteRule (.*) https://name.lv/product-category/furniture/chairs/dinner-chairs/$1 [R=301,L]
RewriteCond %{HTTP_HOST} https://name.lv/product-category/furniture/by-subject/chairs/stools/	
RewriteRule (.*) https://name.lv/product-category/furniture/chairs/stools/$1 [R=301,L]
RewriteCond %{HTTP_HOST} https://name.lv/product-category/furniture/by-subject/nightstands/	
RewriteRule (.*) https://name.lv/product-category/furniture/nightstands/$1 [R=301,L]
RewriteCond %{HTTP_HOST} https://name.lv/product-category/furniture/by-subject/tv-stands/	
RewriteRule (.*) https://name.lv/product-category/furniture/tv-stands/$1 [R=301,L]
RewriteCond %{HTTP_HOST} https://name.lv/product-category/catalog/furniture/by-subject/tables
RewriteRule (.*) https://name.lv/product-category/furniture/by-subject/tables/$1 [R=301,L]
  • Вопрос задан
  • 49 просмотров
Подписаться 1 Простой 1 комментарий
Решения вопроса 1
@dodo512
RewriteCond %{HTTP_HOST} ^name\.lv$
RewriteRule ^(product-category)/catalog/(.*) https://name.lv/$1/$2 [R=301,L]
Ответ написан
Комментировать
Пригласить эксперта
Ваш ответ на вопрос

Войдите, чтобы написать ответ

Похожие вопросы