Aqueduct.Extensions.ResponseExtensions.RedirectPermanent C# (CSharp) Method

RedirectPermanent() public static method

Perform a permanent (301) redirection to the url provided
public static RedirectPermanent ( this response, string url ) : void
response this
url string
return void
        public static void RedirectPermanent (this HttpResponse response, string url)
        {
            response.Redirect (url, false);
            response.StatusCode = 301;
            response.StatusDescription = "Permanently moved";
            response.End ();
        }
    }
ResponseExtensions