Mobile app version of vmapp.org
Login or Join
Megan663

: Do I need disallow other websites directory in robots.txt? I have a hosting which has several websites in www folder. I set up a WordPress website in root directory for main domain. Do I need

@Megan663

Posted in: #RobotsTxt

I have a hosting which has several websites in www folder. I set up a WordPress website in root directory for main domain.

Do I need disallow other websites directory in robots.txt? I think these directories are not relate to the main domain. But is this will totally disallow other website?

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @Megan663

1 Comments

Sorted by latest first Latest Oldest Best

 

@Radia820

You could use robots.txt to block the directories but there is an easier way by using canonical pages on your websites.

This will ensure sites that are hosted within containers within 1 hosting account for example:


/public_html/ = domain1.com
/public_html/domain2.com = domain2.com would only be indexed on the domain that the canonical is setup on.

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme