Redirect RSS feeds to feedburner with .htaccess

October 19, 2008 · Print This Article

There is 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]
</IfModule>

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


Your choice for site templates and wordpress themes

Comments

Got something to say?

You must be logged in to post a comment.