How to Redirect Drupal RSS Feed to Feedburner with Ease

02 Nov · by Tim Kamanin · 1 min read

In spite of running this blog for almost 2 years, I never added its feed to Feedburner, however I should have done this from the beginning. But bad memory did its evil job ;)

When you add your feed to Feedburner in return you get a new url for you feed like this http://feeds.feedburner.com/timonweb. And then you need to update rss feed url's on your Drupal site to this new one. Moreover, you can encounter with a problem: "What to do with previous subscribers, how to force them using Feedburner's feed?". You may want to do this, because Feedburner provides different cool addons to your feed such as click-through statistics.

Ok, doing this is pretty simple, just go to your Drupal root and find .htaccess file. Open it and somewhere at the top add this code:

## START: FeedBurner redirects
RewriteCond %{HTTP_USER_AGENT} !FeedBurner
RewriteRule ^rss.xml$ http://feeds.feedburner.com/timonweb [R=temp,L]
## END: FeedBurner redirects

Note changing 'timonweb' to your own Feedburner ID. From now on, everyone who uses your main Drupal RSS feed which looks like: http://somedrupalsite.com/rss.xml will be redirected to Feedburner processed RSS feed. That's all. No more code changes, no more jumping through the hoop. Enjoy your Drupal.

UPD: Please read comments section. People there gave good solutions for managing multiple feeds. Thank you all!

Comments

Required for comment verification



John S

Excellent. Thanks!

Reply · 7 years, 1 month ago
margaux

FeedBurner module is not available for D7 yet, but I didn't want to change .htaccess if I could avoid it. I was already using the redirect module, so I set up a 301 redirect from [mysite]/blog/rss.xml to my FeedBurner URL, and it worked like a charm. Something to consider for D7 sites.

Reply · 7 years, 1 month ago
social workers

I’ve recently started a blog, the information you provide on this site has helped me tremendously. Thank you for all of your time & work.

Reply · 7 years, 1 month ago
yaworsk

Thanks for the tip! I've gotta make the switch over to feedburner and this will help. pete

Reply · 7 years, 1 month ago
Jeff Geerling

If you have multiple feeds, it's much easier to administer their burning options through Drupal's nice Feedburner module. For one or two feeds, this is a nice/lightweight alternative.

Reply · 7 years, 1 month ago
Richard

You may want to consider the Feedburner module for Drupal, which lets you configure the redirect of any feed Drupal outputs to Feedburner, with the added benefit of not requiring edits to your .htaccess file. http://drupal.org/project/feedburner

Reply · 7 years, 1 month ago
Dave Reid

Of course anytime you update your Drupal core install you'll have to remember to re-add this section to your .htaccess file. Or you could just manage in in the UI via the Feedburner module. :)

Reply · 7 years, 1 month ago
Per

I'd recommend using the (free) MyBrand service to use your own domain instead of feedburner.com. By doing that you remain in full control over your feed URL. http://www.google.com/support/feedburner/bin/answer.py?hl=en&answer;=79586

Reply · 7 years, 1 month ago