<?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: Moving Wordpress: Individual 301 Redirects with PHP</title>
	<atom:link href="http://www.earn-web-cash.com/2008/03/23/moving-wordpress-individual-301-redirects-with-php/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.earn-web-cash.com/2008/03/23/moving-wordpress-individual-301-redirects-with-php/</link>
	<description>Writing, Designing, and Making Money Online</description>
	<lastBuildDate>Sat, 13 Mar 2010 16:52:49 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: butzi</title>
		<link>http://www.earn-web-cash.com/2008/03/23/moving-wordpress-individual-301-redirects-with-php/comment-page-1/#comment-2413</link>
		<dc:creator>butzi</dc:creator>
		<pubDate>Wed, 14 May 2008 12:26:52 +0000</pubDate>
		<guid isPermaLink="false">http://www.earn-web-cash.com/2008/03/23/moving-wordpress-individual-301-redirects-with-php/#comment-2413</guid>
		<description>You could shorten your 2 commands for the redirect to just one:
header(&quot;Location: http://newdomain.com/article.html&quot;, true, 301);

The true tells the function to overwrite the header and the 301 to send the 301 code.

---

The above way is somewhat hard to use, when you have more than 10 sites. It is more easy to use a custom 404.php. In that script you could check the $_SERVER[&#039;REMOTE_ADDR&#039;] against an array with your old addresses, that should be redirected.</description>
		<content:encoded><![CDATA[<p>You could shorten your 2 commands for the redirect to just one:<br />
header(&#8220;Location: <a href="http://newdomain.com/article.html" rel="nofollow">http://newdomain.com/article.html</a>&#8220;, true, 301);</p>
<p>The true tells the function to overwrite the header and the 301 to send the 301 code.</p>
<p>&#8212;</p>
<p>The above way is somewhat hard to use, when you have more than 10 sites. It is more easy to use a custom 404.php. In that script you could check the $_SERVER['REMOTE_ADDR'] against an array with your old addresses, that should be redirected.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Spread the Love: Intersite Linking &#124; Web Cash</title>
		<link>http://www.earn-web-cash.com/2008/03/23/moving-wordpress-individual-301-redirects-with-php/comment-page-1/#comment-1072</link>
		<dc:creator>Spread the Love: Intersite Linking &#124; Web Cash</dc:creator>
		<pubDate>Fri, 28 Mar 2008 00:31:49 +0000</pubDate>
		<guid isPermaLink="false">http://www.earn-web-cash.com/2008/03/23/moving-wordpress-individual-301-redirects-with-php/#comment-1072</guid>
		<description>[...] I recently started working on a new website - the one I mentioned in the article on creating individual 301 redirects for Wordpress. [...]</description>
		<content:encoded><![CDATA[<p>[...] I recently started working on a new website &#8211; the one I mentioned in the article on creating individual 301 redirects for Wordpress. [...]</p>
]]></content:encoded>
	</item>
</channel>
</rss>
