How to: redirect WordPress RSS feeds to feedburner with .htaccess

October 9, 2008 at 1:51 pm

Which blogger doesn’t use feedburner? Sure, feedburner is a very nice service, allowing you to know how many people suscribed to your rss feeds. The only problem is that you must edit your theme files to manually change the rss url. Happilly, there’s a nice hack, using .htaccess, which will make you save a lot of time!

Perishable Press have a very nice .htaccess hack to redirect your WordPress rss feeds to your feedburner feeds. Each time someone will click on a link to, he’ll be redirected to

Simply edit your .htaccess file, and paste the following. Don’t forget to alwyas backup your .htaccess file before editing it!

# temp redirect wordpress content feeds to feedburner
<IfModule mod_rewrite.c>
 RewriteEngine on
 RewriteCond %{HTTP_USER_AGENT} !FeedBurner    [NC]
 RewriteCond %{HTTP_USER_AGENT} !FeedValidator [NC]
 RewriteRule ^feed/?([_0-9a-z-]+)?/?$ [R=302,NC,L]

That’s all. After saving your .htaccess file, all your rss link will redirected to your feedburner feeds.