Mobile app version of vmapp.org
Login or Join
Welton855

: Can I place a robots.txt file inside a subdomain and it only affect that subdomain and not the root domain? Can I place a robots.txt file inside a subdomain and it only affect that subdomain

@Welton855

Posted in: #RobotsTxt #Seo #Subdomain

Can I place a robots.txt file inside a subdomain and it only affect that subdomain and not the root domain?

For example:

I have example.com and mysubdomain.example.com. mysite.com already has a robots.txt that does it's own directives. Can I disallow all bots to mysubdomain.example.com by placing a robots.txt inside it's own folder and it not affect my main domain example.com?

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @Welton855

1 Comments

Sorted by latest first Latest Oldest Best

 

@Kevin317

Yes. Whatever the web root for the subdomain is where you would put a robots.txt for that subdomain's contents. It will not affect the root domain and the root domain's robots.txt will not affect the subdomain.

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme