Global.asax redirect - Magic-Mouse.Net

Make a global asax file and add the code to it the example ive added my own site, but you can change the address. Remove the www. in case you want the redirect to go from www. to http://example insted. 


         protected void Application_BeginRequest(object sender, EventArgs e)

           Response.Status = "301 Moved Permanently";
           Response.AddHeader("Location", "" + Request.Url.AbsolutePath);
Download file here:
Content is copyright | System is copyright Magic-Mouse.Net | Design By Snorri Debess