10.8. Response.RedirectPermanent()

Response.Redirect() is a frequently used method that redirects the current request to another URL. At an HTTP level, Response.Redirect() issues a temporary redirect (HTTP 302) message to the user's browser. ASP.NET 4.0 now offers a new Response.RedirectPermanent() method that issues a permanently moved (HTTP 301) message (www.w3.org/Protocols/rfc2616/rfc2616-sec10.html).

Why bother? HTTP 301 is mainly used to tell search engines that they should save the new page location in their indexes rather than the old location. This saves an unnecessary trip to the server. Response.RedirectPermanent() usage is very similar to Response.Redirect():

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

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
52.15.173.64