WordPress tutorials: Redirect feed to feedburner

Wpsnipp – Recently we featured an article that showed a step by step guide to setup FeedBurner in which we shared the plugins you can use to redirect. In this article, we will show you how you can redirect WordPress RSS Feeds to Feedburner without using a plugin (This tip is for intermediate to advanced users).

First open your .htaccess file which is located in your root directory (Hint: same folder where wp-config.php is located). Then paste the following code:

 

 

# temp redirect wordpress feeds to feedburner
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteCond %{HTTP_USER_AGENT} !FeedBurner    [NC]
RewriteCond %{HTTP_USER_AGENT} !FeedValidator [NC]
RewriteRule ^feed/?([_0-9a-z-]+)?/?$ http://feeds.feedburner.com/feedname [R=302,NC,L]
</IfModule>

Be Sociable, Share!

Leave a comment