Friday, May 6, 2005

731.aspx

Moving a .TEXT blog rss feed to FeedBurner

There are many benefits of using FeedBurner but the main reason I have moved my RSS feeds to FeedBurner is to free up some bandwidth. Please give me a shout if you have any problems with the new feeds.


I had a moment of panic when I did not find any RSS.aspx or atom.aspx files in my blog directory before I remembered that .TEXT uses HttpHandlers. Three steps later and my .TEXT RSS feed was moved to FeedBurner:



  1. Create two new files: rss.aspx and atom.aspx. Both of which should have this content:

    <%@ Language="C#" %>

    <%Response.Redirect ("http://feeds.feedburner.com/YOUR-ID-HERE");%>

  2. Modify Web.Config
    Change:

    <HttpHandler pattern = "^(?:\/(\w|\s|\.)+\/rss\.aspx)$" type = "Dottext.Common.Syndication.RssHandler, Dottext.Common" handlerType = "Direct" />

    <HttpHandler pattern = "^(?:\/(\w|\s|\.)+\/atom\.aspx)$" type = "Dottext.Common.Syndication.AtomHandler, Dottext.Common" handlerType = "Direct" />
    To:

    <HttpHandler pattern = "^(?:\/(\w|\s|\.)+\/rssFeed\.aspx)$" type = "Dottext.Common.Syndication.RssHandler, Dottext.Common" handlerType = "Direct" />

    <HttpHandler pattern = "^(?:\/(\w|\s|\.)+\/atomFeed\.aspx)$" type = "Dottext.Common.Syndication.AtomHandler, Dottext.Common" handlerType = "Direct" />

  3. Modify your FeedBurner account, or create a new one, that points to yoursite/blog/rssFeed.aspx instead of yoursite/blog/rss.aspx

 

1 comment:

  1. I also tryed (and still using for my e-mail signature) FeedBurner, but I switched back to the standard .Text feed on the blog, when I found out that all the images url where not reported correctly on the FB feed.

    I didn't have the time to investigate and solve the problem in .Text sources, but may be your are you willing to do that for you and us all too :-)



    Ciao, Marco.

    ReplyDelete