<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://www.dotnetmafia.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Corey Roth [MVP] : .NET 4.0</title><link>http://www.dotnetmafia.com/blogs/dotnettipoftheday/archive/tags/.NET+4.0/default.aspx</link><description>Tags: .NET 4.0</description><dc:language>en</dc:language><generator>CommunityServer 2007.1 (Build: 20917.1142)</generator><item><title>301 Redirects in .NET 4.0</title><link>http://www.dotnetmafia.com/blogs/dotnettipoftheday/archive/2009/08/28/301-redirects-in-net-4-0.aspx</link><pubDate>Fri, 28 Aug 2009 14:46:48 GMT</pubDate><guid isPermaLink="false">ceb7fe2a-c56b-4d85-99e6-8dd548580538:960</guid><dc:creator>CoreyRoth</dc:creator><slash:comments>1</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://www.dotnetmafia.com/blogs/dotnettipoftheday/rsscomments.aspx?PostID=960</wfw:commentRss><comments>http://www.dotnetmafia.com/blogs/dotnettipoftheday/archive/2009/08/28/301-redirects-in-net-4-0.aspx#comments</comments><description>&lt;p&gt;I posted in the past how to do a simple search engine friendly redirect using the &lt;a href="http://www.dotnetmafia.com/blogs/dotnettipoftheday/archive/2007/03/26/search-engine-friendly-redirect.aspx"&gt;301 HTTP status code&lt;/a&gt;.&amp;#160; 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.&amp;#160; I saw this mentioned in &lt;a href="http://weblogs.asp.net/scottgu/archive/2009/08/27/multi-targeting-support-vs-2010-and-net-4-series.aspx"&gt;Scottgu’s&lt;/a&gt; post about multi-targeting and thought it was worth mentioning today since I have posted on it in the past.&amp;#160; To do a 301 redirect, use the new &lt;em&gt;RedirectPermanent()&lt;/em&gt; method on the response object.&amp;#160; It takes the same parameters as the Redirect() method.&amp;#160; Here is what it would look like.&lt;/p&gt;  &lt;p&gt;&lt;em&gt;Response.RedirectPermanent(“/SomeOtherPage.aspx”);&lt;/em&gt;&lt;/p&gt;  &lt;p&gt;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.&amp;#160; At least they didn’t at one time.&amp;#160; I am not SEO expert.&lt;/p&gt;  &lt;p&gt;Follow me on &lt;a href="http://twitter.com/coreyroth"&gt;twitter&lt;/a&gt;.&lt;/p&gt;&lt;img src="http://www.dotnetmafia.com/aggbug.aspx?PostID=960" width="1" height="1"&gt;</description><category domain="http://www.dotnetmafia.com/blogs/dotnettipoftheday/archive/tags/Cutting+Edge/default.aspx">Cutting Edge</category><category domain="http://www.dotnetmafia.com/blogs/dotnettipoftheday/archive/tags/ASP.NET/default.aspx">ASP.NET</category><category domain="http://www.dotnetmafia.com/blogs/dotnettipoftheday/archive/tags/.NET+4.0/default.aspx">.NET 4.0</category></item></channel></rss>