Perishable Press have a very nice .htaccess hack to redirect your WordPress rss feeds to your feedburner feeds. Each time someone will click on a link to http://www.yourblog.com/feed, he'll be redirected to http://feeds.feedburner.com/yourblog.
Simply edit your .htaccess file, and paste the following. Don't forget to alwyas backup your .htaccess file before editing it!
# temp redirect wordpress content 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/wprecipes [R=302,NC,L]
</IfModule>
That's all. After saving your .htaccess file, all your rss link will redirected to your feedburner feeds.
39 Responses
Very nice recipe! But the feedsmith plugin can do the dirty job for you.
You’re right, but even if you’re using a plugin, it’s alwyas a good thing to know how things are done, I think
For novice users, the FeedSmith plugin accomplishes this task as well.
Thx for sharing this recipe, i just applied to my feed today.
One important thing is that this code must be before wordpress permalink section, if not, can’t work.
Thanks for share the code, and thanks to @brtak for his note.
Regards,
Well, anytime dude
You can always do this too:
Redirect 301 /feed http://feeds2.feedburner.com/Human3rror
Trackbacks: