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

I bought an additional domain name from HostMantis, how do I use it with my account?

When you purchase an additional domain name from HostMantis, it will automatically be set to use...

How do I transfer my domain away from HostMantis?

In order to transfer your domain away from HostMantis, you need to do the following:1. Unlock the...

How do I change the whois contact information for my domain with HostMantis?

Log into the client area: https://my.hostmantis.com/clientarea.php, go to "Domains" and then "My...

I transferred my domain name, but I don't see my website files!

If you are transferring your domain to HostMantis and you have an active website that is hosted...

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....