Is robot.txt used for subdomains?
Let's say I have a test folder (test.domain.com), and I donβt want search engines to crawl it, I need to have robot.txt in the test folder, or I can just place the robot. txt in the root, then just disable the test folder?
Thanks!
Each subdomain is usually considered as a separate site and requires its own robots.txt file.
When the crawler retrieves test.domain.com/robots.txt, that is, the robots.txt file that it sees. It will not see any other robots.txt file.
test.domain.com/robots.txt
, robots.txt . ( ). - .htaccess, , robots.txt .
.htaccess
- , ( ) robots.txt , . , :
http://yourrootdomain.com/robots.txt http://subdomain.yourrootdomain.com/robots.txt