<?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: PHP Location Redirect</title>
	<atom:link href="http://unfocusedbrain.com/site/2008/03/06/php-location-redirect/feed/" rel="self" type="application/rss+xml" />
	<link>http://unfocusedbrain.com/site/2008/03/06/php-location-redirect/</link>
	<description>A Blog with everything.</description>
	<lastBuildDate>Fri, 19 Mar 2010 18:01:12 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: brain</title>
		<link>http://unfocusedbrain.com/site/2008/03/06/php-location-redirect/comment-page-1/#comment-121</link>
		<dc:creator>brain</dc:creator>
		<pubDate>Fri, 07 Mar 2008 17:31:37 +0000</pubDate>
		<guid isPermaLink="false">http://www.unfocusedbrain.com/site/2008/03/06/php-location-redirect/#comment-121</guid>
		<description>All that is really needed is the location line. I added the other stuff to make sure that it doesn&#039;t get cached. Its not all necessary but I just want to be sure.

Here is what the headers look like w/ the above code:
$ lynx -head -dump http://www.unfocusedbrain.com/

&lt;code&gt;HTTP/1.1 302 Moved Temporarily
Date: Fri, 07 Mar 2008 17:30:07 GMT
Server: Apache/2.2.6 (Unix) mod_ssl/2.2.6 OpenSSL/0.9.8g DAV/2 mod_auth_passthr
ough/2.1 mod_bwlimited/1.4 FrontPage/5.0.2.2635
X-Powered-By: PHP/5.2.5
Expires: Wed, 15 Aug 1984 20:30:00 GMT
Cache-Control: no-cache, must-revalidate
Pragma: no-cache
Last-Modified: Fri, 07 Mar 2008 17:30:07 GMT
Location: http://www.unfocusedbrain.com/site/
Connection: close
Content-Type: text/html&lt;/code&gt;

Here is what the headers look like without all the extra stuff and just the location header:

$ lynx -head -dump http://www.unfocusedbrain.com/test.php

&lt;code&gt;HTTP/1.1 302 Moved Temporarily
Date: Fri, 07 Mar 2008 17:36:30 GMT
Server: Apache/2.2.6 (Unix) mod_ssl/2.2.6 OpenSSL/0.9.8g DAV/2 mod_auth_passthr
ough/2.1 mod_bwlimited/1.4 FrontPage/5.0.2.2635
X-Powered-By: PHP/5.2.5
Location: http://www.unfocusedbrain.com/site/
Connection: close
Content-Type: text/html
&lt;/code&gt;</description>
		<content:encoded><![CDATA[<p>All that is really needed is the location line. I added the other stuff to make sure that it doesn&#8217;t get cached. Its not all necessary but I just want to be sure.</p>
<p>Here is what the headers look like w/ the above code:<br />
$ lynx -head -dump <a href="http://www.unfocusedbrain.com/" rel="nofollow">http://www.unfocusedbrain.com/</a></p>
<p><code>HTTP/1.1 302 Moved Temporarily<br />
Date: Fri, 07 Mar 2008 17:30:07 GMT<br />
Server: Apache/2.2.6 (Unix) mod_ssl/2.2.6 OpenSSL/0.9.8g DAV/2 mod_auth_passthr<br />
ough/2.1 mod_bwlimited/1.4 FrontPage/5.0.2.2635<br />
X-Powered-By: PHP/5.2.5<br />
Expires: Wed, 15 Aug 1984 20:30:00 GMT<br />
Cache-Control: no-cache, must-revalidate<br />
Pragma: no-cache<br />
Last-Modified: Fri, 07 Mar 2008 17:30:07 GMT<br />
Location: <a href="http://www.unfocusedbrain.com/site/" rel="nofollow">http://www.unfocusedbrain.com/site/</a><br />
Connection: close<br />
Content-Type: text/html</code></p>
<p>Here is what the headers look like without all the extra stuff and just the location header:</p>
<p>$ lynx -head -dump <a href="http://www.unfocusedbrain.com/test.php" rel="nofollow">http://www.unfocusedbrain.com/test.php</a></p>
<p><code>HTTP/1.1 302 Moved Temporarily<br />
Date: Fri, 07 Mar 2008 17:36:30 GMT<br />
Server: Apache/2.2.6 (Unix) mod_ssl/2.2.6 OpenSSL/0.9.8g DAV/2 mod_auth_passthr<br />
ough/2.1 mod_bwlimited/1.4 FrontPage/5.0.2.2635<br />
X-Powered-By: PHP/5.2.5<br />
Location: <a href="http://www.unfocusedbrain.com/site/" rel="nofollow">http://www.unfocusedbrain.com/site/</a><br />
Connection: close<br />
Content-Type: text/html<br />
</code></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Owen</title>
		<link>http://unfocusedbrain.com/site/2008/03/06/php-location-redirect/comment-page-1/#comment-120</link>
		<dc:creator>Owen</dc:creator>
		<pubDate>Fri, 07 Mar 2008 04:33:20 +0000</pubDate>
		<guid isPermaLink="false">http://www.unfocusedbrain.com/site/2008/03/06/php-location-redirect/#comment-120</guid>
		<description>Is this the correct way to do location redirects? In the past I have not used this method and simply done:

and it worked fine. I thought that apache handled the headers and everything.</description>
		<content:encoded><![CDATA[<p>Is this the correct way to do location redirects? In the past I have not used this method and simply done:</p>
<p>and it worked fine. I thought that apache handled the headers and everything.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
