WordPress Code Snippets

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/wpmix [L,NC,R=302]

Be sure to edit the wpmix part of the URL to match that of your FeedBurner feed.

Learn more

.htaccess made easy

Show Support

Like our new Facebook Page to show support!