DISCLAIMER: this post is older than one year and may not be up to date with latest WordPress version.

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 http://www.yourblog.com/feed, he’ll be redirected to http://feeds.feedburner.com/yourblog.

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-]+)?/?$ http://feeds.feedburner.com/wprecipes [R=302,NC,L]

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


  1. thanks for the great trick but unfortunate I got 500 server error, I’ve added the code before the wordpress things and no luck so I’ve tried added it below and still the error persist 🙁

  2. For ryscript, did you have a newline introduced in the code when you copied and pasted?

    If you have a comments feed, you can adapt for that as well. See below.

    RewriteEngine on
    RewriteCond %{HTTP_USER_AGENT} !FeedBurner [NC]
    RewriteCond %{HTTP_USER_AGENT} !FeedValidator [NC]
    RewriteRule ^feed/?([_0-9a-z-]+)?/?$ http://feeds.feedburner.com/Lifestylus [R=302,NC,L]

    RewriteCond %{HTTP_USER_AGENT} !FeedBurner [NC]
    RewriteCond %{HTTP_USER_AGENT} !FeedValidator [NC]
    RewriteRule ^comments/feed/?/?$ http://feeds.feedburner.com/LifestylusComments [R=302,NC,L]

  3. Do note that the Feedburner redirect code goes before the WordPress redirect portion in .htaccess. Else, your Feedburner redirect code never fires off.

  4. Thank you so much! It worked perfectly!

Leave a Comment

Your email address will not be published. Required fields are marked *