<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	
	>
<channel>
	<title>
	Comments on: Using 301 redirects &#8211; code snippets and tool	</title>
	<atom:link href="https://www.searchenginepeople.com/blog/using-301-redirects-code-snippets-and-tool.html/feed" rel="self" type="application/rss+xml" />
	<link>https://www.searchenginepeople.com/blog/using-301-redirects-code-snippets-and-tool.html?utm_source=feed&#038;utm_medium=feed&#038;utm_campaign=feed</link>
	<description>Canada&#039;s Search and Social Media Authority</description>
	<lastBuildDate>Sun, 16 Nov 2008 08:20:06 +0000</lastBuildDate>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	
	<item>
		<title>
		By: BitStar Software		</title>
		<link>https://www.searchenginepeople.com/blog/using-301-redirects-code-snippets-and-tool.html/comment-page-1#comment-26663</link>

		<dc:creator><![CDATA[BitStar Software]]></dc:creator>
		<pubDate>Sun, 16 Nov 2008 08:20:06 +0000</pubDate>
		<guid isPermaLink="false">https://www.searchenginepeople.com/blog/using-301-redirects-code-snippets-and-tool.html#comment-26663</guid>

					<description><![CDATA[For asp.net I do not believe it is quite well explained there. Sure, the code snippet works fine if you put it in Page_Load and don&#039;t do anything else in the page but if you want to 301 redirect through something like Response.Redirect  it&#039;s not going to work simply because Response.End() is not called. This is how we do it in our software projects:

protected void Redirect301(string url)
        {
            Response.Status=&quot;301 Moved Permanently&quot;;
            Response.AddHeader(&quot;Location&quot;,url);
            Response.End();
        }]]></description>
			<content:encoded><![CDATA[<p>For asp.net I do not believe it is quite well explained there. Sure, the code snippet works fine if you put it in Page_Load and don&#8217;t do anything else in the page but if you want to 301 redirect through something like Response.Redirect  it&#8217;s not going to work simply because Response.End() is not called. This is how we do it in our software projects:</p>
<p>protected void Redirect301(string url)<br />
        {<br />
            Response.Status=&#8221;301 Moved Permanently&#8221;;<br />
            Response.AddHeader(&#8220;Location&#8221;,url);<br />
            Response.End();<br />
        }</p>
]]></content:encoded>
		
			</item>
	</channel>
</rss>
