Permanent Redirect with HTTP 301

How to properly do a permanent redirect with a HTTP 301.

ASP.NET 4.0 gives us this:

ASP.NET 4.0 adds a new RedirectPermanent helper method that makes it easy to issue HTTP 301 Moved Permanently responses, as in the following example:

RedirectPermanent("/newpath/foroldcontent.aspx");
Advertisements

How does Response.Redirect in ASP.NET implement HTTP 302?

HTTP 1.0 302 Object Moved
Location
http://www.microsoft.com

http://msdn.microsoft.com/en-us/library/ms524309.aspx