questo:
mi restituiva questo:codice:string path = HttpContext.Current.Request.Url.AbsolutePath;
cmq forse ho risolto così:codice:/Blog.aspx
codice:internal protected void Application_BeginRequest(object sender, EventArgs e) { string path = HttpContext.Current.Request.Url.AbsolutePath; string absPath = HttpContext.Current.Server.MapPath("~/" + path.Replace("/", "").ToLower()); if (!File.Exists(absPath)) { Response.Redirect("~/Default.aspx"); } }