Answer the question
In order to leave comments, you need to log in
Is it possible to write custom redirect rules for a subdomain?
There is a site with subdomains like cityname.domain.com
Previously, links to news/services, etc. were the same on all domains, unfortunately, some paths had to be changed and a redirect was required:
cityname.domain.com/news/category/1 -> cityname .domain.com/news/category-new/1
All I found on the Internet is just working with regular domains, or redirects from subdomains to domains.
I heard that you can do this through RewriteCond, but did not find even a close solution.
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