In this tutorial from our ‘RSS Tricks’ series we’ll be discussing ways how to redirect your WordPress feeds to FeedBurner Feeds.

When you’re starting out in the blogging world you’re probably only providing your readers with the default WordPress feed, but what about FeedBurner? Many don’t get to know about FeedBurner till later on, when their WordPress feed has already been signed up to.

Fear not, for there is a rather simple solution to this – server redirections. Below is a clear and concise explanation of what you have to do to set up these server redirections, followed by a quick explanation of what they actually do.

Fix 1:

There are 3 simple steps to setting up your server redirection from your WordPress feed (both posts and comments) to the FeedBurner feed:

  1. Since we’ll be editing your .htaccess file, the first step is to create a backup of it. You can find this file located in the root of your Web server.
  2. Open the .htaccess file and add the following code:
    # temp redirect all wordpress feeds to feedburner
    <IfModule mod_rewrite.c>
     RewriteEngine on
     RewriteCond %{REQUEST_URI}      ^/?(feed.*|comments.*)        [NC]
     RewriteCond %{HTTP_USER_AGENT} !^.*(FeedBurner|FeedValidator) [NC] 
     RewriteRule ^feed/?.*$          http://feeds.feedburner.com/wpmayor         [L,NC,R=302]
     RewriteRule ^comments/?.*$      http://feeds.feedburner.com/wpmayorcomments [L,NC,R=302]
    </IfModule>
  3. Save the .htaccess file and you’re done. Your WordPress feed has been redirected to your FeedBurner feed.

Note: Don’t forget to change the feed’s URL (http://feeds.feedburner.com/wpmayor) to your own feed’s URL, and the same for the comments feed.

Fix 2:

This is the older way of doing things. If the first fix doesn’t work for some reason or another, try using this one instead.

  1. Create a backup of your .htaccess file.
  2. Open the .htaccess file and add the following code:
    # 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/wpmayor [R=302,NC,L]
    </IfModule>
    
    # temp redirect wordpress comment feeds to feedburner
    <IfModule mod_rewrite.c>
     RewriteEngine on
     RewriteCond %{HTTP_USER_AGENT} !FeedBurner    [NC]
     RewriteCond %{HTTP_USER_AGENT} !FeedValidator [NC]
     RewriteRule ^comments/feed/?([_0-9a-z-]+)?/?$ http://feeds.feedburner.com/wpmayorcomments [R=302,NC,L]
    </IfModule>
  3. Save the .htaccess file and you’re done. Your WordPress feed has been redirected to your FeedBurner feed.

Note: Once again, don’t forget to change the feed’s URL for both the posts and comments.

How It Works

This is nothing more than a simple server redirection. What this means is that when someone clicks on a link to, or tries to access http://www.your-blog.com/feed they will be redirected to http://feeds.feedburner.com/wpmayor.

By doing this, all existing RSS subscribers you already have won’t be lost, and all new ones will be directed to the correct URL immediately.

Original Source: Perishable Press

Published by Mark Zahra

The Team Lead and Head of Support for the WP RSS Aggregator project, which forms part of the RebelCode family.

1 Comment

  1. Appreciation to my father who shared with me about this webpage,
    this website is truly amazing.

    Reply

Leave a Reply

Your email address will not be published. Required fields are marked *