Take the 2-minute tour ×
Webmasters Stack Exchange is a question and answer site for pro webmasters. It's 100% free, no registration required.

I have several websites on one hosting account. The main website is in the root. Other websites are in sub-folders off the root directory.

In the robots.txt file for the main website, do I need to Disallow other website directories?

share|improve this question
add comment

1 Answer

In the robots.txt file for the main website, do I need to Disallow other website directories?

Only if you are wanting to block these directories on the main site, which shouldn't be necessary, since mainsite.com/subsite/ should ideally be blocked at the server level (ie. in .htaccess).


Additional... if these "websites" each have their own domain (they are "add-on" domains) then you will need a separate robots.txt for each site in its own root directory, which appears to be a sub-folder of the main site in this case. Providing you do actually want to block crawlers on these sub sites.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.