<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>GuideCloud.com &#187; Permanent Redirect</title>
	<atom:link href="http://www.guidecloud.com/tag/permanent-redirect/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.guidecloud.com</link>
	<description>WordPress, PHP and other development related stuff</description>
	<lastBuildDate>Tue, 05 Jul 2011 09:59:40 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=</generator>
		<item>
		<title>How to setup 301 Permanent Redirect on a specific page</title>
		<link>http://www.guidecloud.com/2009/03/15/how-to-setup-301-permanent-redirects-on-a-specific-page/</link>
		<comments>http://www.guidecloud.com/2009/03/15/how-to-setup-301-permanent-redirects-on-a-specific-page/#comments</comments>
		<pubDate>Sun, 15 Mar 2009 00:59:41 +0000</pubDate>
		<dc:creator>GuideCloud.com</dc:creator>
				<category><![CDATA[Search Engine Optimization (SEO)]]></category>
		<category><![CDATA[Web Development]]></category>
		<category><![CDATA[.htaccess]]></category>
		<category><![CDATA[301]]></category>
		<category><![CDATA[Apache]]></category>
		<category><![CDATA[ASP Classic]]></category>
		<category><![CDATA[ASP.Net]]></category>
		<category><![CDATA[HTTP Status Codes]]></category>
		<category><![CDATA[IIS]]></category>
		<category><![CDATA[Permanent Redirect]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[SEO]]></category>

		<guid isPermaLink="false">http://www.guidecloud.com/?p=7</guid>
		<description><![CDATA[Redirect pages or folders to a new location using "301 Permanent Redirect". Code samples and instructions for ASP.Net, PHP, ASP Classic, Apache .htaccess and Internet Information Server (IIS). <a href="http://www.guidecloud.com/2009/03/15/how-to-setup-301-permanent-redirects-on-a-specific-page/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>The following instruction will show you how to redirect a specific file on your website to a new location.</p>
<h2>When should I use &#8220;301 Permanent Redirect&#8221;?</h2>
<p>HTTP 301 Permanent Redirects should be used when you are about to change page name on a page that has been included in any search engine index. The 301 redirect ensures that search engines and users are directed to the correct page. The <a title="&quot;HTTP" href="&quot;http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html#sec10.3.2&quot;">HTTP 301 Status Code</a> means that the page has been moved to a new location, permanently.</p>
<h2>Permanent Redirects using PHP</h2>
<p>Add the following code to your PHP page:</p>
<pre class="brush: php;">&lt;?php
// Permanent redirection
header(&quot;HTTP/1.1 301 Moved Permanently&quot;);
header(&quot;Location: http://www.newlink.com/&quot;);
exit();
?&gt;</pre>
<h2>301 Permanent Redirect using ASP.Net</h2>
<p>Add the following code to your ASP.Net page:<br />
<em> </em></p>
<pre class="brush: csharp;">&lt;script runat=&quot;server&quot;&gt;
private void Page_Load(object sender, System.EventArgs e)
{
Response.Status = &quot;301 Moved Permanently&quot;;
Response.AddHeader(&quot;Location&quot;,http://www.newurl.com/);
}
&lt;/script&gt;</pre>
<h2>Permanent Redirects in ASP Classic (VB)</h2>
<p>Add the following code to your ASP page:</p>
<pre class="brush: vb;">&lt;%@ Language=VBScript %&gt;
&lt;%
' Permanent Redirect
Response.Status = &quot;301 Moved Permanently&quot;
Response.AddHeader &quot;Location&quot;, &quot;http://www.newlink.com/&quot;
Response.End
%&gt;</pre>
<h2>Redirect a specific page using .htaccess on Apache</h2>
<p>If your website is running on an Apache server, you can add your redirects to a file named <a title="&quot;Apache" href="&quot;http://httpd.apache.org/docs/2.0/howto/htaccess.html&quot;" target="&quot;_blank&quot;">.htaccess</a> (no file extension). Add the code below using a text editor and upload fhe file to your website&#8217;s root directory.<br />
<em></em></p>
<p><em>
<pre class="brush: plain;">RewriteEngine on
Redirect 301 /oldpagename.html http://www.newlink.com/newpagename.html</pre>
<p></em></p>
<h2>Permanent Redirects in Internet Information Server (IIS)</h2>
<p>Follow these steps to redirect a specific page or folder to a new location:</p>
<ol>
<li>Open &#8220;Internet Information Services (IIS) Manager&#8221;, found under &#8220;Start &gt; Control Panel &gt; Administrative Tools&#8221;.</li>
<li>Browse to the website and file/folder you would like to redirect</li>
<li>Right click on the file/folder and choose &#8220;Properties&#8221;</li>
<li>Select the &#8220;A redirection to a URL&#8221; radiobutton (see screenshot below)</li>
<li>Enter the new URL in the &#8220;Redirect to:&#8221; field</li>
<li>Check the &#8220;A permanent redirection for this resource&#8221; checkbox</li>
<li>Click on &#8220;Apply&#8221;</li>
</ol>
<p><img class="&quot;alignnone" title="&quot;Configure" src="&quot;http://www.guidecloud.com/wp-content/uploads/2009/03/301-permanent-redirect-iis.gif&quot;" alt="&quot;Configure" width="&quot;471&quot;" height="&quot;260&quot;" /></p>
<h2>More information</h2>
<p><a title="&quot;HTTP" href="&quot;http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html&quot;" target="&quot;_blank&quot;">HTTP Status Code Definitions</a><br />
<a title="&quot;HTTP" href="&quot;http://en.wikipedia.org/wiki/HTTP_301&quot;" target="&quot;_blank&quot;">HTTP 301 on Wikipedia</a><br />
<a title="&quot;List" href="&quot;http://en.wikipedia.org/wiki/List_of_HTTP_status_codes&quot;" target="&quot;_blank&quot;">List of HTTP status codes on Wikipedia</a><br />
<a title="&quot;301" href="&quot;http://www.google.com/support/webmasters/bin/answer.py?answer=93633&quot;" target="&quot;_blank&quot;">301 redirects on Google Webmasters Help</a></p>



Share this post:


	<a rel="nofollow"  target="_blank" href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fwww.guidecloud.com%2F2009%2F03%2F15%2Fhow-to-setup-301-permanent-redirects-on-a-specific-page%2F&amp;title=How%20to%20setup%20301%20Permanent%20Redirect%20on%20a%20specific%20page&amp;bodytext=Redirect%20pages%20or%20folders%20to%20a%20new%20location%20using%20%22301%20Permanent%20Redirect%22.%20Code%20samples%20and%20instructions%20for%20ASP.Net%2C%20PHP%2C%20ASP%20Classic%2C%20Apache%20.htaccess%20and%20Internet%20Information%20Server%20%28IIS%29." title="Digg"><img src="http://www.guidecloud.com/wp-content/plugins/sociable/images/digg.png" title="Digg" alt="Digg" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://sphinn.com/index.php?c=post&amp;m=submit&amp;link=http%3A%2F%2Fwww.guidecloud.com%2F2009%2F03%2F15%2Fhow-to-setup-301-permanent-redirects-on-a-specific-page%2F" title="Sphinn"><img src="http://www.guidecloud.com/wp-content/plugins/sociable/images/sphinn.png" title="Sphinn" alt="Sphinn" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://delicious.com/post?url=http%3A%2F%2Fwww.guidecloud.com%2F2009%2F03%2F15%2Fhow-to-setup-301-permanent-redirects-on-a-specific-page%2F&amp;title=How%20to%20setup%20301%20Permanent%20Redirect%20on%20a%20specific%20page&amp;notes=Redirect%20pages%20or%20folders%20to%20a%20new%20location%20using%20%22301%20Permanent%20Redirect%22.%20Code%20samples%20and%20instructions%20for%20ASP.Net%2C%20PHP%2C%20ASP%20Classic%2C%20Apache%20.htaccess%20and%20Internet%20Information%20Server%20%28IIS%29." title="del.icio.us"><img src="http://www.guidecloud.com/wp-content/plugins/sociable/images/delicious.png" title="del.icio.us" alt="del.icio.us" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.facebook.com/share.php?u=http%3A%2F%2Fwww.guidecloud.com%2F2009%2F03%2F15%2Fhow-to-setup-301-permanent-redirects-on-a-specific-page%2F&amp;t=How%20to%20setup%20301%20Permanent%20Redirect%20on%20a%20specific%20page" title="Facebook"><img src="http://www.guidecloud.com/wp-content/plugins/sociable/images/facebook.png" title="Facebook" alt="Facebook" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.mixx.com/submit?page_url=http%3A%2F%2Fwww.guidecloud.com%2F2009%2F03%2F15%2Fhow-to-setup-301-permanent-redirects-on-a-specific-page%2F&amp;title=How%20to%20setup%20301%20Permanent%20Redirect%20on%20a%20specific%20page" title="Mixx"><img src="http://www.guidecloud.com/wp-content/plugins/sociable/images/mixx.png" title="Mixx" alt="Mixx" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.google.com/bookmarks/mark?op=edit&amp;bkmk=http%3A%2F%2Fwww.guidecloud.com%2F2009%2F03%2F15%2Fhow-to-setup-301-permanent-redirects-on-a-specific-page%2F&amp;title=How%20to%20setup%20301%20Permanent%20Redirect%20on%20a%20specific%20page&amp;annotation=Redirect%20pages%20or%20folders%20to%20a%20new%20location%20using%20%22301%20Permanent%20Redirect%22.%20Code%20samples%20and%20instructions%20for%20ASP.Net%2C%20PHP%2C%20ASP%20Classic%2C%20Apache%20.htaccess%20and%20Internet%20Information%20Server%20%28IIS%29." title="Google Bookmarks"><img src="http://www.guidecloud.com/wp-content/plugins/sociable/images/googlebookmark.png" title="Google Bookmarks" alt="Google Bookmarks" class="sociable-hovers" /></a>


<br/><br/>]]></content:encoded>
			<wfw:commentRss>http://www.guidecloud.com/2009/03/15/how-to-setup-301-permanent-redirects-on-a-specific-page/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

