Redirect Wordpress feeds to feedburner using .htaccess

This is a guide how to redirect Wordpress feeds to feedburner using .htaccess file.

Probably you’ve heard about feedburner. It offers a service to track how many users are subscribed to your feed.

The easiest way to redirect your feed, edit your .htaccess file on your server and add this code:

?View Code APACHE
<ifmodule mod_rewrite.c>
RewriteEngine on
RewriteCond %{HTTP_USER_AGENT} !^(FeedBurner|FeedValidator) [NC]
RewriteRule ^([a-z][a-z])/feed/?([_0-9a-z-]+)?/?$ http://feeds.feedburner.com/vanyi-$1 [R=302,NC,L]
RewriteRule ^feed/?([_0-9a-z-]+)?/?$ http://feeds.feedburner.com/vanyi [R=302,NC,L]
</ifmodule>

Replace YOUR_FEEBURNER_FEED_NAME with your feed name.
When user agent macth FeedBurner then all your path inside /feed will be served to your feedburner account.