Answer the question
In order to leave comments, you need to log in
How to register a redirect for a subfolder with a change in domain and one of the folders?
I am writing .htaccess for one domain. We have a CMS where data access is implemented in this form:
mydomen1.ru/index.php/xxx/data
For those cases when xxx is equal to a certain value, I need to redirect to another domain with a change in xxx to yyy, of the form:
mydomen2.ru/index.php/yyy/data
respectively, while maintaining the subfolder structure. You also need to take into account that data can be empty, and there may or may not be a slash before it.
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