Routing of URLs capability is added

Your Ad Here

Usually we use Response.Redirect method to forward a request to the new URL. However, the Redirect method issues an HTTP 302 Found (temporary redirect) response, which results in an extra HTTP round trip when users attempt to access the old URLs.

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");

Search engines and other user agents that recognize permanent redirects will store the new URL that is associated with the content, which eliminates the unnecessary round trip made by the browser for temporary redirects.

Subscribe
Posted in Labels: kick it on DotNetKicks.com |

1 comments:

  1. Anonymous Says:

    Ich entschuldige mich, aber meiner Meinung nach irren Sie sich. Geben Sie wir werden besprechen. Schreiben Sie mir in PM. cialis generika online kaufen cialis preise [url=http//t7-isis.org]cialis[/url]