This is the code I use to redirect from www. to non www. version of my site void Application_BeginRequest(object sender, EventArgs e)