An Apache Feedburner Redirect

Mar 04, 2007

I had been running Lighttpd over on Textdrive, and had a redirect to handle using Feedburner for stat tracking while still being able to use my site’s rss url.

Switching to Slicehost finally allowed me to try an Apache/mongrel setup, which was a nice, but required me to add a new redirect using mod_rewrite. All the articles out there on the internet seem to have slightly different ways of doing this, but this is what I eventually settled on.

RewriteEngine on
RewriteCond %{HTTP_USER_AGENT} !^FeedBurner.*$
RewriteRule /path/to/rss$ http://feeds.feedburner.com/username [R=temp,L]

While I’m getting used to configuring Apache 2.2 to do my bidding, I think Lighttpd was much easier to configure. When Lighttpd 1.5 is finally released (and supporting mongrel cluster) I’ll probably switch back.