Torna al Thread

string thisUrl = app.Request.Url.ToString().ToLower(); if (thisUrl.Contains("http://www.informarea.it/BlogEngine")) { HttpContext.Current.Response.Status = "301 Moved Permanently"; HttpContext.Current.Response.AddHeader("Location", thisUrl.Replace( "http://www.informarea.it/BlogEngine", "http://www.informarea.it" ) ); }
Copyright © dotNetHell.it 2002-2025
Running on Windows Server 2008 R2 Standard, SQL Server 2012 & ASP.NET 3.5