: How do i tell google to ignore my subdomain? 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
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?
More posts by @Frith620
3 Comments
Sorted by latest first Latest Oldest Best
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.
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:
www.robotstxt.org/robotstxt.html
Terms of Use Create Support ticket Your support tickets Stock Market News! © vmapp.org2024 All Rights reserved.