« View all posts.

Burn Your Drupal 6 RSS Feeds with FeedBurner & Apache mod_rewrite

As it stands the Drupal FeedBurner module is not yet ready for the 6.x series. A simple workaround is to redirect Drupal feed requests (default: /rss.xml) to FeedBurner based on the useragent using Apache’s mod_rewrite. The trick is to redirect all requests for the feed, with the exception of those made by the FeedBurner bot, to the Burned feed. You can repeat this for as many feeds as is necessary. Thanks to ckdake for the tip.

Example .htaccess snippet: # Rewrite feed URL to FeedBurner RewriteCond %{HTTP_USER_AGENT} !FeedBurner [NC] RewriteRule rss\.xml http://feeds.feedburner.com/johndbritton [L]