<?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/"
		xmlns:xhtml="http://www.w3.org/1999/xhtml"
>

<channel>
	<title>oganosin blog&#187; http status code</title>
	<atom:link href="http://www.oganosin.net/blog/tag/http-status-code/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.oganosin.net/blog</link>
	<description>oganosin weblog</description>
	<lastBuildDate>Wed, 21 Jul 2010 03:00:00 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.6</generator>
	<language>ja</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://www.oganosin.net/blog/tag/http-status-code/feed/" />
		<item>
		<title>php のheader関数でリダイレクトするとステータスコードは302</title>
		<link>http://www.oganosin.net/blog/programming/20090430/</link>
		<comments>http://www.oganosin.net/blog/programming/20090430/#comments</comments>
		<pubDate>Thu, 30 Apr 2009 08:16:53 +0000</pubDate>
		<dc:creator>oganosin</dc:creator>
				<category><![CDATA[プログラム]]></category>
		<category><![CDATA[http status code]]></category>
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://www.oganosin.net/blog/?p=59</guid>
		<description><![CDATA[となることをこのたび初めて知った。
PHP: header &#8211; Manual
なので301　を返したい場合は以下のようにすればよいとのこと。

header("HTTP/1.0 301 Moved Perma [...]]]></description>
			<content:encoded><![CDATA[<p>となることをこのたび初めて知った。<br />
<a href="http://jp2.php.net/manual/ja/function.header.php">PHP: header &#8211; Manual</a></p>
<p>なので301　を返したい場合は以下のようにすればよいとのこと。</p>
<pre>
header("HTTP/1.0 301 Moved Permanently");
header("Location: http://www.oganosin.net/xxxxx/");
</pre>
<p>覚えておこう。</p>
]]></content:encoded>
			<wfw:commentRss>http://www.oganosin.net/blog/programming/20090430/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://www.oganosin.net/blog/programming/20090430/" />
	</item>
	</channel>
</rss>
