Picture of Mark Zahra

Mark Zahra

Mark has been involved with WP RSS Aggregator for almost a decade, from running customer support to now leading RebelCode, the company behind the plugin. He has a passion for content and news, especially the concept of ethically sharing content to help each other grow.

Table of contents

Streamline your
content-sharing process

Get started with WP RSS Aggregator today and unlock the full potential of RSS feeds!

RSS Tricks: How to Redirect WordPress Feeds to FeedBurner Feeds

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

Article by

Article by

Share the Post:

Leave a Reply

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

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Related Articles