S
S
Sergey Ch2020-11-30 11:34:31
linux
Sergey Ch, 2020-11-30 11:34:31

How to implement the issuance of a specific robots.txt for all subdomains by *.mysite.ru mask?

There are many technical subdomains on which it is necessary to close access to search engines. All domains fall under the mask *.mysite.ru
Can all clients accessing *. mysite.ru/robots.txt issue a redirect to some pre-prepared file on a static path? for example, https://mysite.ru/no-robots.txt

Or do you have to manually edit the configs for each host?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
K
ky0, 2020-11-30
@ky0

You can make a config that will process all subdomains - server_nameit also supports regular expressions. There your prohibiting robots.txt and add.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question