Mobile app version of vmapp.org
Login or Join
Merenda212

: How to write robots.txt for one hosting which has several websites in different directories? I have several websites on one hosting account. The main website is in the root. Other websites are

@Merenda212

Posted in: #WebCrawlers

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?

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @Merenda212

1 Comments

Sorted by latest first Latest Oldest Best

 

@Ann8826881

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.

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme