FeedBurner.com: HomeAboutBurn Your Feed Now

Burning Questions

The official FeedBurner weblog.

Subscribe

Blog Posts

Blog Comments

Podcast (Wanna produce our podcast? Learn More »)

Get Updates by Email


Huh?

Learn more about syndication, feeds, and feedburning.

Publisher Buzz

I love the SmartFeed function that FeedBurner provides. When I give out my feed address, I know it'll be accessible from any browser, podcatcher, or news aggregator software. So everyone can tune in to the podcast. Much love for FeedBurner!" - Simon and the team at musiccanteen.com, the music download site for independent musicians 2/22/06

More Buzz »
Submit Your Buzz »

Featured Posts

View Full Archive »

Upcoming Events

More Events »

Press

In The News

More In The News »

Press Releases

More Press Releases »

FeedBurner Ad Network

Whether you want to advertise to millions of feed subscribers or visitors to your Web site or blog, FAN is comprised of content from the world's top media sites, A-list bloggers and hard-to-find niche content.

Learn more »

FeedBurner Facts & Stats

February 26, 2004

Useful Tips #1: Pointing an existing feed URL at your new FeedBurner URL

It's Day 2 of Pre-Alpha, and we can already declare a clear winner for "most conspicuously absent FAQ entry." If you already syndicate content, your readers are using your current feed's URL in their news readers. How can you painlessly migrate their requests from your old server/feed to your newly burned FeedBurner feed, so all of your syndication traffic takes advantage of our services?

We recommend the procedure below if you have control over security settings for your web server. Also, we use Movable Type in this example as our publishing platform. If you use a hosted service (such as TypePad, Blogspot, or Radio) this procedure won't work for you as written, but there might be workarounds you can explore with your service provider.

1:: Create a new private feed
» Create a new, private feed. This feed will not be publicized anywhere.

» In Movable Type, select Templates from the Manage menu, and then select the template you use to publish your feed. (A likely default template is "index.xml.")

» Change the Output File value from "index.xml" to "fb-index.xml".

» Save, then rebuild, all Index templates.

2:: Burn the new private feed
» In FeedBurner, start a new burned feed by entering the private feed you created in step 1 above into the Feed URL field on FeedBurner's home page.

» Create a URI for your republished feed. FeedBurner will automatically suggest one for you, but you may want to personalize it. For example, if your blog was entitled "History of Hair Bands," you might use "hairbandhist." Rock!

» Apply FeedBurner services you desire and activate the newly burned feed.

3:: Apache users: create an .htaccess file in your blog directory
And now, the tricky part. The following instructions apply to Apache users only.

» Instruct Apache to redirect requests for your old feed to your burned feed. Create an .htaccess file with this single line in it in the directory that contains your old feed. If your published directory is /var/www/host/blogs/hbh, you would enter this line:

Redirect temp /hbh/index.xml http://feeds.feedburner.com/hairbandhist

Notice that we use a temp redirect. This redirect means that feed readers will still access /hbh/hairbandhist.xml and then get redirected. If we used permanent instead, readers would forget the old URL and just use the new URL permanently. In our pre-alpha service phase, we don't yet recommend permanent redirection.

Once you create .htaccess, it takes effect immediately. No server restart required.

4:: Remove the existing feed file
» Finally, delete the old feed file (/var/www/host/blogs/hbh/index.xml) to avoid any confusion.

If you ever wish to suspend redirection to FeedBurner, you can seamlessly point to your private feed without having to expose the private URL by replacing the .htaccess file with something like this:


RewriteEngine On
RewriteBase /hbh
RewriteRule ^index\.xml$ fb-index.xml

As you can imagine, we'd like to make this process a LOT simpler for publishers. Look for a service (or a combination of services and plug-ins for publishing platforms) from FeedBurner in the future!

Posted by Matt at 10:30 AM
PermalinkComments (16)

Comments

instead of the fourth step, you could manually edit the old xml feed to say "we've moved to xxxxxx" or something similar...

for the 4th step i setup a .htaccess redirect up. when someone requests a feed thats now not there, they are redirected to feedburner.

The font on this page is unreadable because it is too small.

I'm compelled to agree, at least on the Mac OS X platform. I've bumped up the basic blog body style's font size, site-wide. A little less squinting!

Hi,
thanks for this very useful redirect.

I'm using Radio Userland. The xml-feed is generated thru a macro, now i don't want to delete that macro in the template. What happens if I leave the "old" rss.xml on the server and activate the redirect?

Thanks Thomas

if your redirect works successfully and your "new private feed" (per Step 2, above) is updated each time you update your blog (presumably by that macro?), you should have no problems and should feel free to delete the old rss.xml file. i'm not familiar with Radio at the publisher's configuration level, but i'd assume it has some options that control what the feed output file is actually named.

Hi Matt,
the point is that in order to get rid of the rss.xml I'd need to delete the macro - which I don't want..

In Radio you cannot define the name easily - meaning not thru the user interface.

I'll check if the redirect works. Since I have about 80 readers on average that should be reflected in the statistics.

anyone figure this out for pmachine? http://www.pmachine.com

For some reason, when I put multiple ReDirects in my .htaccess file, only the last redirect is taking effect. I have had multiple feeds in the past so now I am unable to redirect them all but whatever one I put last in the list of redirects.

Any ideas?

never mind, I'm an idiot :) I figured it out.

Posted by: Jason | October 28, 2004 12:15 PM

happy to help ;-p.

Beautimous! Took a little tinkering - I'm using WordPress. I'm hoping that putting this before the existing redirects will take care of things. Also - is it a # to comment out a line in an htaccess file?

Redirect temp /wp-rss2.php http://feeds.feedburner.com/myname
Redirect temp /wp-rss.php http://feeds.feedburner.com/myname
Redirect temp /wp-atom.php http://feeds.feedburner.com/myname

Redirect temp /feed/rss/ http://feeds.feedburner.com/myname
Redirect temp /feed/rss2/ http://feeds.feedburner.com/myname
Redirect temp /feed/atom/ http://feeds.feedburner.com/myname

# comments out a line in .htaccess -- it's true.

I figured out how to do it for Drupal. You need to modify node.php, look for the command dispatcher, create a private value which will invoke node_feed(), and have 'feed' do a redirect to your feedburner feed.

I've documented it in my blog at http://mcdevzone.com/blog/index.php?p=1822

Anybody got any easy ways to do this with ASP.Net? I've been digging, but haven't found anything that makes it easy.

Is it possible to carry out this procedure using Tristana Writer?

Post a comment

Your comment will be held for approval by FeedBurner.





Powered by Movable Type 3.2

©2004-2006 FeedBurner, Inc. All Rights Reserved.