2

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?

4

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:

| improve this answer | |
  • good idea. ATM i cant do this bc robots.txt would be shared on both sites. – user1585 Apr 6 '11 at 4:45
3

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

| improve this answer | |
1

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.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy