Step 1: register a new sub domain (e.g. new.myblog.com), so that user's ISP will get the brand new IP address.
Step 2: in old server, add a Wildcard application maps to have ASP.NET engine handle all requests (html, gif etc)
Step 3: in global.asax, redirect user in Application_BegineRequest:
string url = HttpContext.Current.Request.Url.AbsolutePath;
string QueryParams = HttpContext.Current.Request.QueryString.ToString();
if ( QueryParams != "")
{ Response.Redirect("http://new.myblog.com" + url + "?"+ QueryParams); }
else
{ Response.Redirect("http://new.myblog.com" + url ); }
No comments:
Post a Comment