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 .
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/abc.aspx");
No comments:
Post a Comment