A
A
Alexey selftrips.ru2017-11-11 11:38:08
htaccess
Alexey selftrips.ru, 2017-11-11 11:38:08

How to redirect xxx/yyy ->xxx/category/yyy?

Refused to remove /category/
how to redirect from old rubric addresses without /category/
to new ones with /category/?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Viktor Taran, 2017-11-14
@shambler81

clearly according to

RewriteCond %{REQUEST_URI} ^(xxx)/(yyy)(.*)$ 
RewriteRule ^(.*)$  http://site.ru/%1/category/%2%3 [R=301,L]

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question