Webmaster Forum

Webmaster Forum (http://www.v7n.com/forums/index.php)
-   Google Forum (http://www.v7n.com/forums/forumdisplay.php?f=26)
-   -   How to no-index subfolder on hosting but not the site itself - same folder on hosting (http://www.v7n.com/forums/showthread.php?t=429774)

TechPro4U 02-04-2019 12:22 PM

How to no-index subfolder on hosting but not the site itself - same folder on hosting
 
I don't know why, but google has in a few cases picked up one of our websites "www.websitewehost.com" and our internal structure on our hosting "www.ourhostingdomain.com/websitewehost" in the index.

Our host will allow us to use either or both once we go live - they both point to the same folder on our server. However we only want "www.websitewehost.com" to be indexed, not "www.ourhostingdomain.com/websitewehost".

I can't put a robots file with "Disallow /" in the "www.ourhostingdomain.com/websitewehost" root folder, because it will also be seen when visiting "www.websitewehost.com" and prevent indexing of the whole site (which we want).

But as it stands now, google could see this as duplicate content.

How can I prevent indexing of "www.ourhostingdomain.com/websitewehost" but allow "www.websitewehost.com" since they contain the same set of files?


All times are GMT -7. The time now is 10:47 PM.

3.8.7