Why is it that ASP/ASP.NET Response.Redirect uses a HTTP-302 status code (\"Moved Temporarily\") even though in most cases a HTTP-301 status code (\"Moved Permanently\") wou
I've used this handy Permanent Redirect with success:
public void RedirectPermanent(string newPath)
{
HttpContext.Current.Response.Clear();
HttpContext.Current.Response.Status = "301 Moved Permanently";
HttpContext.Current.Response.AddHeader("Location", newPath);
HttpContext.Current.Response.End();
}