Permanent redirect and .Text
Yesterday I moved my .Text based site to a new domain - http://blogs.x2line.com/al/. From now on it will remain permanent since x2line.com belongs to me. But may be any of you have had such experience once - move your site to another domain. The main problem is how to maintain google ratings. I was #1 in google searching by my first name, also I had powerful links to my site - all this the result of 8 months work. I didn't want to loose everything. Permanent redirect is the good idea, thanks Bill. But I had no access to IIS. I didn't want to write new http module and I could not put permanent redirect code in the old pages since .text engine is heavily based on handlers and the application does not feel such changes. At last I made it by writing 5 lines of code in global.asax of the old app.:
protected void Application_BeginRequest(Object sender, EventArgs e) { HttpRequest Request = Context.Request; HttpResponse Response = Context.Response; string redirurl = "http://blogs.x2line.com" + Request.RawUrl; Response.AddHeader("Location", redirurl); Response.StatusCode = 301; Response.End(); }
Sunday, August 22, 2004 4:11 AM