Reputation: 1
I need to stop indexing subdomains of a same site, for example:
aaa.xxx.com
: (No indexing)bbb.xxx.com
: (No indexing)www.xxx.com
: (It should indexed)All the subdomains are under the same domain. How can we achive that?
Upvotes: -1
Views: 120
Reputation: 525
On the subdomain you don't want indexed, include a robots.txt file in the main web directory that contains:
User-agent: *
Disallow: /
On the subdomain you want to index, don't do anything
Upvotes: 1