One thing you’ll want to do if you change the location of your blog is to have your subscribers automatically pick-up the new location of your RSS feed. This post just documents a trick that I used recently to do this.
If you are lucky enough to using an asp.net-based blogging tool then it is fairly easy. You’ll probably have a .aspx file that emits rss/xml. Most aggregators will interpret an HTTP 301 response to a request for this file as an instruction to automatically change the feed subscription location. To generate this response, simply replace the contents of the feed-generating file with something like the following:
<%@ Page language=”c#” %>
<%@ Import Namespace=”System.Web” %><%
Context.Response.StatusCode = 301;
Context.Response.AddHeader(“Location”, “http://www.mynewdomain.com/mynewfeed.aspx”);
Response.End();
%>
Replace the URL with the URL of your new feed, and thats it. Then sit back and monitor the traffic on your old and new sites until nobody is hitting the old feed and everyone is seeing the new feed. Then delete the old site.