Redirecting Wordpres Feeds to FeedBurner

9 May
2009

feedburner-logo

FeedBurner is a web feed management provider offering custom RSS feeds and management tools to bloggers, podcasters, and other web-based content publishers. With the help of FeedBurner” services you can find out how many people have subscribed to your feeds and with what service/program they subscribed with. FeedBurner is a typical Web 2.0 service, providing web service application programming interfaces (APIs) to allow other software to interact with it. Currently FeedBurner is owned by Google and yuo can combine FeedBurner with Google’s AdSense for feeds service in order to make a revenue even from your Blog’s RSS feed.

If you are using a WordPress-powered blog you can easily redirect your posts and or comments feeds to FeedBurner with the help of the .htaccess file and the mod rewrite module. Here is how your .htaccess files should look if you are using a custom permalinks structure for your blog and you should be using that (Admin / Settings / Permalinks) and not the default settings of WordPress:


# BEGIN FeedBurner Redirect

RewriteEngine On
RewriteBase /
RewriteCond %{HTTP_USER_AGENT} !FeedBurner
RewriteRule ^feed/?.*$ http://feeds2.feedburner.com/yourblogid [R,L]
RewriteRule ^comments/?.*$ http://feeds2.feedburner.com/yourblogcommentsid [R,L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]

# END FeedBurner Redirect

Don’t forget to modify yourblogid and yourblogcommentsid to your FeedBurner feed IDs, otherwise the code above won’t work as expected as it will redirect your feeds to somewhere else. Before redirecting the feeds you need to register for FeedBurner and/or add your feeds first in order to be able to use the above code.



Other Similar Publications:

Leave a Reply

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

top