Redirecting Wordpress Feed into Feedburner
By Reaper-X on Sep 3, 2006 in Apache, Guide, Linux, Tutorials, Wordpress
Yesterday i’ve finished setting up the redirection on my feed url so all the request made into my feed url got redirected automatically into my feedburner url. There’s a lot of website already put this guide on how to redirect your wordpress feed into feedburner feed, but in my case i was using the redirect only for human not bot.
Because if you submit your site feed into google sitemap or yahoo sitemap, your feedburner feed can’t be read by those bot or other rss aggregator bot if you choose to optimize your feedburner feed so it’s browser friendly. If you don’t understand what i mean about optimizing your feedburner feed, take a look at my feedburner feed at http://feeds.reaper-x.com/ReaperX and you’ll see the XML file was transformed by feedburner so you can read it in your browser, instead of showing the XML codes. But this optimizing thing doesn’t looks good to bot / rss aggregator bot because bot can only see it in real xml format not the converted xml codes. And so i decided to make .htaccess file containing redirection only for human not for bot (although i don’t have a complete list but this one already enough for me).
And here’s the sample .htaccess file i'm using to redirect my feed into feedburner :
RewriteCond %{HTTP_USER_AGENT} !^.*RSS.* [NC]
RewriteCond %{HTTP_USER_AGENT} !^.*Aggregat.* [NC]
RewriteCond %{HTTP_USER_AGENT} !^.*Crawler.* [NC]
RewriteCond %{HTTP_USER_AGENT} !^.*Seek.* [NC]
RewriteCond %{HTTP_USER_AGENT} !^.*Google.* [NC]
RewriteCond %{HTTP_USER_AGENT} !^.*Yahoo.* [NC]
RewriteCond %{HTTP_USER_AGENT} !^.*FeedBurner.* [NC]
RewriteCond %{HTTP_USER_AGENT} !^.*Spider.* [NC]
RewriteCond %{HTTP_USER_AGENT} !^.*Bot.* [NC]
RewriteCond %{HTTP_USER_AGENT} !^.*Wordpress.* [NC]
RewriteCond %{HTTP_USER_AGENT} !^.*Ask.* [NC]
RewriteRule ^feed/?([_0-9a-z-]+)?/?$ http://feeds.feedburner.com/ReaperX [R=301,NC,L]
Forget about that part ... the simple way to do it is just like this :)
# 301 Redirect to the new feed url for every
RewriteCond %{HTTP_USER_AGENT} !Feedburner [NC]
RewriteRule ^feed/?([-_0-9a-z]+)?/?$ http://feeds.reaper-x.com/ReaperX [R=301,NC,L]
# 301 Redirect to the new comments feed url
RewriteCond %{HTTP_USER_AGENT} !Feedburner [NC]
RewriteRule ^comments/feed/?([-_0-9a-z]+)?/?$ http://feeds.reaper-x.com/ReaperXComments [R=301,NC,L]

Website RSS Feed
Stumble this post
Bookmark this post on Del.icio.us
Submit this post to Digg
Submit this post to Reddit
Print this
Trackback URL












I have Unsecured Loans Bad Credit Personal Loans and I search where i can go to get a 24 Hour Personal Loans With Bad Credit