FeedBurner and WordPress
In previous posts I've extolled the virtues of WordPress for running blogs and FeedBurner for managing RSS feeds. The problem, as I recently discovered, is that getting FeedBurner to work with WordPress when your web server is Microsoft's Internet Information Server (IIS) isn't as straightforward as one would like.
Fortunately, Greg Lipscomb has done much of the legwork in figuring the trick to configuring WordPress and FeedBurner. He missed a few steps which I've included in my instructions I've provided below:
- Download this file from Greg's site.
- Open the file in an editor.
- Replace the first piece of code which looks like this
- Change URL at the top of the file to be what your FeedBurner URL will be e.g. http://feeds.feedburner.com/my-feed.
- Right after the line of PHP code you changed in step 4, add these two lines:
header('HTTP/1.1 301 Moved Permanently');
header('Status: 301 Moved Permanently');
- Save the file and change the extension from .txt to .php.
- Upload this file to the root of your WordPress blog.
- If you don't already have a FeedBurner account, create one.
- Register your feed using this as your RSS feed URL: http://www.mysite.com/?feed=feedburner.
- Log in to the administration tool of your WordPress log.
- Navigation to Presentation-->Theme Editor-->Header
- Replace this piece of code
<?php bloginfo('rss2_url'); ?>
with the URL from step 4. Save your changes.
- You're all done.