<?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>Andi Gibson &#187; redirect</title>
	<atom:link href="http://www.andigibson.co.uk/tag/redirect/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.andigibson.co.uk</link>
	<description>Professional Photography and Web Design</description>
	<lastBuildDate>Fri, 05 Feb 2010 10:24:59 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>HTTP Status codes and how to trigger them in PHP</title>
		<link>http://www.andigibson.co.uk/30/http-status-codes-and-how-to-trigger-them-in-php/</link>
		<comments>http://www.andigibson.co.uk/30/http-status-codes-and-how-to-trigger-them-in-php/#comments</comments>
		<pubDate>Tue, 10 Mar 2009 00:40:05 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[301]]></category>
		<category><![CDATA[error codes]]></category>
		<category><![CDATA[http]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[redirect]]></category>

		<guid isPermaLink="false">http://www.andigibson.co.uk/?p=30</guid>
		<description><![CDATA[I will be adding all the codes to this post but for now here is how to do a php 301 redirect
PHP 301 Redirect
If you have upgraded your website and renamed some of your files, make sure you don&#8217;t get any 404 error&#8217;s &#8211; Google will punish you for it!
simply put the following lines of [...]]]></description>
			<content:encoded><![CDATA[<p><strong>I will be adding all the codes to this post but for now here is how to do a php 301 redirect</strong></p>
<p><strong>PHP 301 Redirect</strong></p>
<p>If you have upgraded your website and renamed some of your files, make sure you don&#8217;t get any 404 error&#8217;s &#8211; Google will punish you for it!</p>
<p>simply put the following lines of code at the old location:</p>
<blockquote><p>header(&#8220;HTTP/1.1 301 Moved Permanently&#8221;);<br />
header(&#8220;Location: http://www.yourdomain.com/newpage.php&#8221;);<br />
exit();</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://www.andigibson.co.uk/30/http-status-codes-and-how-to-trigger-them-in-php/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
