I did a search and i found a link to my site... twice. They are exactly the same except one is www and the other is static. How do i tell google to ignore everything in my static domain?

3 Answers 3


Upload a robots.txt file to the root of the static subdomain. This can block all web spiders including the Googlebot.

You can find instructions on how to format and configure your robots.txt file here:

  • good idea. ATM i cant do this bc robots.txt would be shared on both sites.
    – user1585
    Apr 6, 2011 at 4:45

If your site is served with apache, you can use mod_rewrite to serve a custom robots.txt depending upon the HTTP_HOST variable.


In your DNS control panel, enable only www to point to your site. You most likely have your DNS settings configured to use * wildcard subdomains.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.