InfoHeap
Tech
Navigation
  • Home
  • Tutorials
    • CSS tutorials & examples
    • CSS properties
    • Javascript cookbook
    • Linux/Unix Command Line
    • Mac
    • PHP
      • PHP functions online
      • PHP regex
    • WordPress
  • Online Tools
    • Text utilities
    • Online Lint Tools
search

Wordpress RSS feed tutorials

  • create rss feed for wordpress on Google feedburner
  • use your own domain name for feedburner feed
  • redirect wordpress feed to feedburner feed
  • setup Google feedburner email subscription newsletter
  • Google feedburner email subscription vs Mailchimp
  • setup MailChimp Rss email campaign
  • ping feedburner to force update rss cache
  • customize wordpress rss feed
  • Fetch wordpress rss feed as FeedBurner user agent
 
  • Home
  • > Tutorials
  • > Wordpress
  • > Wordpress RSS feed

How to redirect wordpress feed to feedburner feed url

By admin | Last updated on Mar 18, 2016

If you have been using wordpress for directly serving rss feed and have recently migrated to feedburner, then some of your users are still being server from old feed url. e.g. If you web site is infoheap.com, some of your users are being served from https://infoheap.com/feed/. While the new ones will get served from feedburner url which is either http://feeds.infoheap.com/infoheap  or http://feeds.feedburner.com/infoheap depending upon whether you are using My Brand feature of feedburner or not.

You may consider redirecting your old users to feedburner hosted feed url when they visit old rss feed url. We’ll look into two ways to do it.

Using wordpress feedburner plugin

One way to do it is using feedburner plugin which lets you redirect you old feeds url to new feedburner url for most user agents (except a few). Here is how the configuration looks like for this plugin:

wordpress-feedburner-plugin-confuguration

I think it is better to not redirect category, tag, author and search results feeds and directly serve them from wordpress site itself.

Some points to note:

  1. The plugin uses HTTP 302 redirect.
  2. The plugin does not redirect for Feedburner and Googlebot user-agents as per the following code (at the time of writing this article):
    // Do nothing if feedburner is the user-agent
    if (preg_match('/feedburner/i', $_SERVER['HTTP_USER_AGENT'])) return;
    
    // Avoid redirecting Googlebot to avoid sitemap feeds issues
    // http://www.google.com/support/feedburner/bin/answer.py?hl=en&answer=97090
    if (preg_match('/googlebot/i', $_SERVER['HTTP_USER_AGENT'])) return;
  3. It is simple to implement and does not require any apache config changes.

Using apache configuration

This is preferred way as it is faster than php based redirection (plugin approach). Here is the configuration you can use in apache conf file:

RewriteCond %{HTTP_USER_AGENT} !^.*(FeedBurner|FeedValidator|Googlebot) [NC]
RewriteRule ^/feed/?$ http://feeds.infoheap.com/infoheap [L,NC,R=302]

Some points to note:

  1. You will need mod_rewrite module enable for this.
  2. I used HTTP 302 here which is a temporary redirect. You can also choose HTTP 301. I decided a temporary redirect as this is more flexible and can be changed later. The small disadvantage is “HTTP 302” will result in more hits/load on your server.
  3. The redirect should not happen for Feedburner user-agent as Feedbuner will fetch feeds from your site itself to serve it to others users.
  4. We are not redirecting for FeedValidor user-agent in case you want to use FeedValidor to validate the feed.
  5. We are also avoiding redirect for Googlebot to avoid potential sitemap feeds issues. You can look at this google feedburner help page for more info. This is applicable only if you are using feed as a source of sitemap.

Suggested posts:

  1. Find image unique colors and bit depth using imagemagick identify
  2. How to create rss feed for wordpress blog on Google feedburner
  3. How to view flash debug log using Firefox on Mac
  4. How to use your own domain name for feedburner feed urls
  5. Google feedburner email subscription vs Mailchimp
  6. git – how to diff two branches
  7. Comic strip – developer should not listen to CEO
  8. How to ping feedburner to force update rss cache
Share this article: share on facebook share on linkedin tweet this submit to reddit
Posted in Tutorials | Tagged Apache, mod_rewrite, Rss Feed, Tutorials, Webmaster, Wordpress, Wordpress RSS feed
  • Browse content
  • Article Topics
  • Article archives
  • Contact Us
Popular Topics: Android Development | AngularJS | Apache | AWS and EC2 | Bash shell scripting | Chrome developer tools | Company results | CSS | CSS cookbook | CSS properties | CSS Pseudo Classes | CSS selectors | CSS3 | CSS3 flexbox | Devops | Git | HTML | HTML5 | Java | Javascript | Javascript cookbook | Javascript DOM | jQuery | Kubernetes | Linux | Linux/Unix Command Line | Mac | Mac Command Line | Mysql | Networking | Node.js | Online Tools | PHP | PHP cookbook | PHP Regex | Python | Python array | Python cookbook | SEO | Site Performance | SSH | Ubuntu Linux | Web Development | Webmaster | Wordpress | Wordpress customization | Wordpress How To | Wordpress Mysql Queries | InfoHeap Money

Copyright © 2025 InfoHeap.

Powered by WordPress