Take the 2-minute tour ×
Webmasters Stack Exchange is a question and answer site for pro webmasters. It's 100% free, no registration required.

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

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:

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

 
discard

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.