P. 1
ASP.net4.0 and Visual Studio 2010 Web Development Beta 1 Overview

ASP.net4.0 and Visual Studio 2010 Web Development Beta 1 Overview

|Views: 1,403|Likes:
Published by samaymahajan

More info:

Categories:Types, Brochures
Published by: samaymahajan on Jun 22, 2009
Copyright:Attribution Non-commercial

Availability:

Read on Scribd mobile: iPhone, iPad and Android.
download as DOC, PDF, TXT or read online from Scribd
See more
See less

05/11/2014

pdf

text

original

It is common practice in Web applications to move pages and other content around
over time, which can lead to an accumulation of stale links in search engines. In
ASP.NET, developers have traditionally handled requests to old URLs by using by
using the 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.

You're Reading a Free Preview

Download
scribd
/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->