How to hide subdomains from Google search?

If you have subdomains that you want to keep from being indexed by Google along with you main account domain, you can do so with Robots.txt

For example, if your main domain is example1.com and you have a subdomain named example2.com and Google is indexing it as "example2.example1.com" you can avoid Google from indexing as such.

In the root of /public_html for your main domain example1.com add the following to robots.txt for any add-on domains:

User-agent: *
Disallow: /example2.com

Any additional domains you would add an additional line:

Disallow: /example3.com
  • 4 Users Found This Useful
Was this answer helpful?

Related Articles

How do I use a domain name purchased through HostMantis with another hosting provider?

Your new provider should have provided you with nameservers for your hosting account (i.e....

In the client area under "My Domains", I do not see my domain.

"My Domains" in the client area only shows you domains you have registered/purchased through...

Should I transfer my domain or just update my domains nameservers?

You can keep your domain registered with your current domain registrar or you can transfer it to...

How do I enable privacy protection for my domain name?

ID protection can be purchased for your domains purchased from us using our client area:From our...

Transferring a domain from Godaddy to HostMantis

Once you have received the transfer request email at the administrative contact for the domain,...