A fresh mix of code snippets and tutorials

FeedBurner .htaccess redirect

Need to redirect your feeds to FeedBurner? Here’s how to do it with a thin slice of .htaccess.

Just add the following slice of code to your site’s root .htaccess file:

<IfModule mod_rewrite.c>
	RewriteEngine on
	RewriteCond %{HTTP_USER_AGENT} !^.*(FeedBurner|FeedValidator) [NC] 
	RewriteRule ^feed/? http://feeds.feedburner.com/yourfeedname [L,NC,R=302]

Be sure to edit the yourfeedname part of the URL to match that of your FeedBurner feed. Check out this post for more in-depth information.

Learn more

.htaccess made easy