Dot Net Mafia

Group site for developer blogs dealing with (usually) Ionic, .NET, SharePoint, Office 365, Mobile Development, and other Microsoft products, as well as some discussion of general programming related concepts.

This Blog



Corey Roth [MVP]

A SharePoint MVP bringing you the latest time saving tips for Ionic, SharePoint, and Office 365.

301 Redirects in .NET 4.0

I posted in the past how to do a simple search engine friendly redirect using the 301 HTTP status code.  I thought this was always something that needed to be included in the framework and it looks like it finally will be in .NET 4.0.  I saw this mentioned in Scottgu’s post about multi-targeting and thought it was worth mentioning today since I have posted on it in the past.  To do a 301 redirect, use the new RedirectPermanent() method on the response object.  It takes the same parameters as the Redirect() method.  Here is what it would look like.


This type of redirect obviously doesn’t really matter for internal sites, but for public facing sites, if you are relying on a redirect somewhere, it is best to do it with a 301 as the search engines don’t really care for the standard 302 redirect.  At least they didn’t at one time.  I am not SEO expert.

Follow me on twitter.



301 vs 302 Redirects in SharePoint « SPMatt said:

Pingback from  301 vs 302 Redirects in SharePoint « SPMatt

January 18, 2012 8:51 AM

Leave a Comment


About CoreyRoth

Corey Roth is an independent SharePoint consultant specializing in ECM, Apps, and Search.
2018 dotnetmafia.
Powered by Community Server (Non-Commercial Edition), by Telligent Systems