protected void Application_BeginRequest(Object sender, EventArgs e) { string strUrl = Context.Request.FilePath; if (strUrl == "/") { Context.RewritePath("/home/index.html"); } else { bool res = RouteHelper.CheckRoute(strUrl); if (res == true) { Response.Redirect("/Content/Error/404.html"); } } }