Webmasters Stack Exchange is a question and answer site for pro webmasters. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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?

share|improve this question

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:

share|improve this answer
good idea. ATM i cant do this bc robots.txt would be shared on both sites. – acidzombie24 Apr 6 '11 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.

share|improve this answer

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.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.