Redirect WordPress RSS Feeds to Feedburner

by Hiroshi on November 13, 2008

in Hacks, htaccess, Mod Rewrite, WordPress

Feedburner is a very useful service for adding a visual user and search engine friendly rss with your blog. Every successful blogger uses Feedburner service. Feedburner also provide a way to know your subscribers and emails your subscribers when ever an update is available at your blog without causing any load at your own server. This service is free.

Using .htaccess, we can redirect WordPress RSS Feeds to feedburner. Each time someone will click on a link to https://www.yourblog.com/feed, he’ll be redirected to https://feeds.feedburner.com/yourblog.

Simply edit your .htaccess file which will be located in root directory of your blog by following method and paste the following code in that.

# 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-]+)?/?$ https://feeds.feedburner.com/yourblog [R=302,NC,L]
</IfModule>

https://feeds.feedburner.com/yourblog is the address of your feedburner feeds for your blog. Change it accordingly.

After saving your .htaccess file, all your rss link will be redirected to your feedburner feeds.

Related Posts

Previous post:

Next post: