D
D
doorway-team2019-01-14 11:50:43
Nginx
doorway-team, 2019-01-14 11:50:43

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

1 answer(s)
S
Sergey Goryachev, 2019-01-14
@webirus

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 question

Ask a Question

731 491 924 answers to any question