public static void RedirectPermanent (this HttpResponse response, string url) { response.Redirect (url, false); response.StatusCode = 301; response.StatusDescription = "Permanently moved"; response.End (); } }