I have shared hosting and am using some subdomains in addition to my main domain.I've noticed some search engine results are showing the url as http://www.maindomain/subdomain
so it's obvious the site is a subdomain of my main domain, when it really should be showing as http://www.subdomain.com
I still want http://www.subdomain to be searched though, not blocked.
If I make robots.txt in the main directory be:
User-Agent: *
Disallow: /subdomain
And a then add a robots.txt in the subdirectory with:
User-Agent: *
Allow: /
Would that prevent results showing up as from http://www.maindomain/subdomain but would show any http://www.subdomain.com results?
Or would the robots.txt in the main directory override and prevent anything in the subdomain being indexed?


LinkBack URL
About LinkBacks



Reply With Quote


Bookmarks