WordPress To Feedburner Without A Plugin

Many blog owners opt to redirect their blog feed to FeedBurner, mainly I feel so your subscribers can be counted and you have some idea what your most read articles are and can monitor in many other ways, ie: click throughs etc…

There are a few plugins that offer this for you for example FD Feedburner Plugin but to save installing yet another plugin you can insert a few lines into your .htaccess file in your document root, before we start please backup your .htaccess file then add the following.

If you use inside the following lines:

<ifmodule mod_rewrite.c></ifmodule>

You just need to use:

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

Outside of that you need to include the ifmodules like this:

<ifmodule mod_rewrite.c>
RewriteEngine on
RewriteCond %{REQUEST_URI}      ^/?(feed.*|comments.*)        [NC]
RewriteCond %{HTTP_USER_AGENT} !^.*(FeedBurner|FeedValidator) [NC]
RewriteRule ^feed/?.*$          http://feeds.feedburner.com/FEEDNAME [L,NC,R=302]
RewriteRule ^comments/?.*$      http://feeds.feedburner.com/FEEDNAME [L,NC,R=302]
</ifmodule>

Replaced FEEDNAME with your Feedburner feed name, the first is for the main feed, the second is for comments. If you don’t wish to redirect comments add this instead:

<ifmodule mod_rewrite.c>
RewriteEngine on
RewriteCond %{REQUEST_URI}      ^/?(feed.*)        [NC]
RewriteCond %{HTTP_USER_AGENT} !^.*(FeedBurner|FeedValidator) [NC]
RewriteRule ^feed/?.*$          http://feeds.feedburner.com/FEEDNAME [L,NC,R=302]
</ifmodule>

Now you can direct your feed to feedburner without a plugin and can absorb all of the juicy subscriber data that FeedBurner has to throw at you.

You Might Also Like