prevent WordPress RSS feeds from being indexed

October 14th, 2007
WordPress provides an RSS feed link for every single post you publish in your blog. It is highly unlikely that someone would want her RSS feeds to show up on Google's results.

To prevent Google from indexing your WordPress RSS feeds you will have to create/modify the robots.txt file in your website's root directory. What you will put in your robots.txt file depends on the permalink type you are using.

If you use "pretty" permalinks (like the ones in this website) you will have to add the following:

User-Agent: *
Disallow: */feed/


However, if you prefer the "ugly" permalinks that WordPress defaults to, you will need to add something like this:

User-Agent: *
Disallow: *feed=rss2*


Leave a Reply