WordPress Code Snippets

A fresh mix of code snippets and tutorials

FeedBurner .htaccess redirect

88

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:

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

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!