I have some web pages that google has indexed. Now I added a robots.txt file to exclude them but should I also add a “noindex” tag and if so then how can I best add this?
migrated from stackoverflow.com Jun 28 '11 at 17:32
|
The robots.txt should be enough But Google will not make the change until the next time they index your website. Which if your site is low traffic may be a while. |
|||
|
|
|
You would use code similar to this:
|
|||
|
|
If you want to block search engines from crawling and/or indexing your pages you can use a few methods: 1) Use robots.txt. Google will honor it and remove those pages automatically although there is no timetable for them to get it done 2) Use meta tags
3) Use http headers
4) Use rel="nofollow" on any links that point to those pages.
You can also tell Google to remove those pages from their index in Google Webmaster Tools. |
|||
|
|
|
Google will respect your robot.txt directives. The See this page for more info about ways to prevent bots from indexing your content. |
|||
|
|