<?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>The Gravytrain Blog - SEO, PPC, Web Design, Social Media &#38; Marketing &#187; 500</title>
	<atom:link href="http://www.gravytrain.co.uk/blog/tag/500/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.gravytrain.co.uk/blog</link>
	<description>News &#38; views on SEO, PPC, Web Design &#38; Marketing</description>
	<lastBuildDate>Mon, 30 Jan 2012 16:29:38 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>How to Set up 301 &amp; 302 Redirects</title>
		<link>http://www.gravytrain.co.uk/blog/2009/07/how-to-set-up-301-302-redirects/</link>
		<comments>http://www.gravytrain.co.uk/blog/2009/07/how-to-set-up-301-302-redirects/#comments</comments>
		<pubDate>Mon, 20 Jul 2009 08:00:48 +0000</pubDate>
		<dc:creator>Angelina</dc:creator>
				<category><![CDATA[SEO]]></category>
		<category><![CDATA[Web Design]]></category>
		<category><![CDATA[301]]></category>
		<category><![CDATA[302]]></category>
		<category><![CDATA[404]]></category>
		<category><![CDATA[500]]></category>
		<category><![CDATA[Redirects]]></category>

		<guid isPermaLink="false">http://www.gravytrain.co.uk/blog/?p=489</guid>
		<description><![CDATA[Within this post I&#8217;ll be explaining what a redirect is, the difference between a 301 and a 302 redirect and how to set up redirects yourself. Right, let&#8217;s go:

What is a redirect?
A redirect is a command which automatically sends visitors to an alternative web page rather than the one they typed into their browser.

Why do you need [...]]]></description>
			<content:encoded><![CDATA[<p>Within this post I&#8217;ll be explaining what a redirect is, the difference between a 301 and a 302 redirect <img class="alignright size-medium wp-image-554" src="http://www.gravytrain.co.uk/blog/wp-content/uploads/2009/07/lumaxart-300x300.jpg" alt="lumaxart" width="210" height="210" />and how to set up redirects yourself. Right, let&#8217;s go:</p>
<p><strong></strong></p>
<p><strong>What is a redirect?</strong></p>
<p>A redirect is a command which automatically sends visitors to an alternative web page rather than the one they typed into their browser.</p>
<p><strong></strong></p>
<p><strong>Why do you need to use redirects?</strong></p>
<p>From time to time you may need to either delete a page, or change it&#8217;s URL. If you just go ahead and do this without a redirect, any visitor to the page will get a 404 which can be bad for users and for SEO (see our really rather good <a href="http://www.gravytrain.co.uk/blog/2009/07/10/how-to-manage-broken-links-and-404-error-pages/" target="_blank">guide to managing broken links and 404&#8217;s</a> and  for more information).</p>
<p><strong></strong></p>
<p><strong>Why are they important?</strong></p>
<p>Redirects help users by automatically taking them to an alternative page, or indeed the same page if you&#8217;ve simply changed the URL. Likewise, redirect also tells search engines that the page has moved.</p>
<p><strong></strong></p>
<p><strong>Plain English Definitions of those Pesky Numerical Wotsits</strong></p>
<p>What&#8217;s the difference between a 301 and a 302? What&#8217;s a 404? How&#8217;s a 404 differ from a 500? Be confused no longer:</p>
<p><strong>301 &#8211; Permanent Redirect: </strong>This tells the search engines that the page has moved permanently. Over time authority from the old page will pass to the new version.</p>
<p><strong>302 &#8211; Temporary Redirect: </strong>This tells the search engine that the page has moved temporarily. As such no authority from the old page will pass to the new version.</p>
<p><strong>404 - Error Page/File Not Found: </strong>This tells the search engine that the web page cannot be found</p>
<p><strong>500 &#8211; Internal Server Error: </strong>This means there is a problem with the code which is affecting the server. This may have been caused by incorrect coding or command set up.<strong> </strong></p>
<p> </p>
<p><strong>To 301 or 302&#8230; Which Redirect Should I Use?</strong></p>
<ol type="1">
<li>301 &#8211; A permanent redirect should be used if you&#8217;ve changed the URL permanently. For SEO purposes it rocks as it helps maintain your natural search listing and indexing by the search engines (NB you might see a drop in rankings initially, but they should recover).</li>
<li>302 &#8211; A temporary redirect should be used only in the event that it&#8217;s a temporarily URL change. For SEO purposes it sucks as it passes no authority &#8211; therefore you might find that your lose rankings.</li>
</ol>
<p> </p>
<p><strong>How do you set up redirects?</strong></p>
<p>1. Open Notepad to create a new document.</p>
<p>2. Insert one of the following commands into notepad with your website URL address.</p>
<p style="padding-left: 30px;">Temporary redirect<br />
redirect 302 /old-webpage.html http://www.website.co.uk/new-webpage.html</p>
<p style="padding-left: 30px;">Permanent redirect<br />
redirect 301 /old-webpage.html <a href="http://www.website.co.uk/new-webpage.html">http://www.website.co.uk/new-webpage.html</a></p>
<p style="text-align: center;"><img class="size-full wp-image-495 aligncenter" src="http://www.gravytrain.co.uk/blog/wp-content/uploads/2009/07/slide2.jpg" alt="slide2" width="662" height="260" /></p>
<p> </p>
<p>3. Save the notepad file as an HTACCESS file. You can do this by saving the file with the name .htaccess.</p>
<p style="padding-left: 30px; text-align: center;"><img class="size-full wp-image-561 aligncenter" src="http://www.gravytrain.co.uk/blog/wp-content/uploads/2009/07/slide31.jpg" alt="slide31" width="663" height="195" /></p>
<p> </p>
<p> 4. Make sure to select &#8216;All files&#8217; in &#8216;Save as type&#8217;.</p>
<p style="text-align: center;"><img class="size-full wp-image-570 aligncenter" src="http://www.gravytrain.co.uk/blog/wp-content/uploads/2009/07/save-slide-2.jpg" alt="save-slide-2" width="663" height="382" /></p>
<p> </p>
<p>5. Open your FTP for your website. (Note: You will need to open the file in SFTP to be able to upload your HTACCESS file. You may need to enter a password to be able to log into the server.)</p>
<p style="text-align: left;">6. Upload the HTACCESS file to the root of your server. This is usually in the www folder on the server.</p>
<p>7. Test the web page to see that it is redirecting. (If the web page redirects from the old address to the new address, then the redirect is working.)</p>
<p> </p>
<p><strong>Having problems?</strong></p>
<p><em>I&#8217;m still seeing the same web page even though I have uploaded the htaccess file. Have I done something wrong?</em></p>
<p>The redirect to the web page is probably incorrect. Check that you have put in the correct web page address. Also check your slashes &#8216;/&#8217; and the web page language extension &#8211; htm, html, php, asp, aspx etc.</p>
<p><strong></strong></p>
<p><em>I&#8217;m receiving a 500 internal server error. What did I do wrong?</em></p>
<p>There is probably incorrect formatting in the HTACCESS file. Check the file for spacing and typing errors.</p>
<p> </p>
<p>Hopefully now you&#8217;re good to go, but of course if you do have any queries please let me know via the comments.</p>
<p> </p>
<p> </p>
<p>Image source: <a href="http://www.flickr.com/photos/lumaxart/2137729430/" target="_self">Lumaxart</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.gravytrain.co.uk/blog/2009/07/how-to-set-up-301-302-redirects/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

