: 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
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?
More posts by @Megan663
1 Comments
Sorted by latest first Latest Oldest Best
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.
Terms of Use Create Support ticket Your support tickets Stock Market News! © vmapp.org2024 All Rights reserved.