Answer the question
In order to leave comments, you need to log in
How to set up redirects?
Hello!
Please tell me how to make a redirect from gorod.site.ru/contacts to gorod.site.ru/contacts/gorod .
My version:
RewriteEngine On
RewriteBase /
RewriteCond %{HTTP_HOST} ^(.+).site.ru$
RewriteRule (.*) http://site.ru/$1?region=%1 [L,R=301,QSA]
%1 - gorod
works, but needs to be completed, it doesn't work(
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question