Answer the question
In order to leave comments, you need to log in
How to make a redirect not for all pages?
How to make a redirect from the YYY.ru domain to the XXX domain. For almost all pages.
But other than:
robots.txt
sitemap.xml
rss.xml
Answer the question
In order to leave comments, you need to log in
I suspect you are doing the problem wrong.
You do not need to redirect all files except for, but create dynamic robots, sitemap.
And the domains themselves, meanwhile, should be written as aliases.
it74.net/techblog/dinamicheskie-robotos-txt-i-site...
Similar to sitemap, you decide with rss.
This way you will get different robots and sitemaps when referring to domains.
I'll add examples in the comments.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question