Feedburner and b2evolution

Those of you out there using b2evolution might be interested to know what I did to enable Feedburner on b2evolution.  The key thing was to redirect all RSS feeds from any reader to my Feedburner site.  Changing the physical site links was easy and required some code tweaks, the harder part was modifying the system so that existing subscribers would transparently move to Feedburner.  To enable this, I had to use a custom .htaccess to force apache to redirect all RSS requests to feedburner.  Note, that I used basic instructions Feedburner provided in their help section, but had to extend upon it.  As an FYI, the basic URL to access b2evolution RSS feeds is as follows: http://yourblogurl/index.php?tempskin=_xxx where xxx equals rss, rss2 or Atom.  Here is the basic syntax:

RewriteEngine On
RewriteCond %{HTTP_USER_AGENT} !FeedBurner
RewriteCond %{Query_String} ^tempskin=_rss2
RewriteRule .* http://feeds.feedburner.com/myFeed? [R,L] 

Here is a summary of what is going on. First, we turn on the rewrite engine in Apache.  Second, we check the URL to ensure that the incoming request is not from Feedburner.  Third, we check to see if the querystring "tempskin" exists with one of the RSS values.  Finally, I redirect to feedburner.  Note that I repeat the code (excluding RewriteEngine On) for the _rss and _Atom feed types.  So far this works perfectly.

I am not an Apache guru so if anyone has any suggestions for enhancements, let me know.

(Visited 168 times, 1 visits today)

3 thoughts on “Feedburner and b2evolution”

Leave a Reply

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

* Copy This Password *

* Type Or Paste Password Here *

This site uses Akismet to reduce spam. Learn how your comment data is processed.