01
Oct
2008



Bookmark and Share

wordpressIf you have a WordPress blog you should know that it comes with its own rss feed, right? You also know that Feedburner is a excellent service which lets you keep track of all of your feeds, giving you at the same time accurate statistics about your readers and what tools they use to burn your feeds. If you want to gain control over your readers, here is a nice piece of code to use. This code has to be put in your .htaccess located in your server, in the public_html folder. But what does it do? Let’s have a look at it:

# Redirect Feeds to Feedburner
RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /(feed|wp-atom|wp-feed|wp-rss|wp-rdf|wp-commentsrss)(.+)\ HTTP/ [NC,OR]
RewriteCond %{QUERY_STRING} ^feed [NC]
RewriteCond %{HTTP_USER_AGENT} !^(FeedBurner|FeedValidator) [NC]
RewriteRule .* http://feeds2.feedburner.com/webtlk? [R=307,L]
RewriteRule ^comments/?.*$ http://feeds2.feedburner.com/webtlk/comments [L,R=302]

Basically, it redirects all of your WordPress rss feed to your Feedburner feeds. When a person clicks on the feed icon located in your Firefox address bar (or wherever you place it), he will be automatically redirected to Feedburner. In this way you will have a better idea of how many people read your blog.




Related Articles Latest Articles
.

3 Comments to “How to redirect WordPress feeds to Feedburner feeds”

  1. Rohit @ Trickslog Says:

    thanks buddy…

  2. Web Talk Says:

    Hi,
    I have deleted the old code (the one you tried) and have copied and pasted the code I have in my htaccess code.
    This new code should work pretty well since it works for my blog!
    Thanks. Try it and let me know. It should be pretty safe!

  3. Merik Says:

    This didn’t work for me and almost messed up my entire site! More detailed instructions are needed. LUCKILY I made a backup and put things back. Don’t do this without copying your original code and then being able to paste it back!
    .-= Merik´s last blog ..A Domain Dossier Lookup Tool for Competitive Intelligence =-.


Copyright © 2007-2017 | Sitemap | Privacy | Back To Top
Best screen resolution 1280x800 or higher.
Web Talk is best viewed in Firefox.

Stat