<?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: External Files Causing a WordPress 404 Error?</title>
	<atom:link href="http://www.ardamis.com/2006/07/10/wordpress-googlebot-404-error/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.ardamis.com/2006/07/10/wordpress-googlebot-404-error/</link>
	<description>Ardamis is a tiny web development studio specializing in high-quality, handmade web sites.</description>
	<lastBuildDate>Mon, 08 Mar 2010 08:12:00 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: web dev guy</title>
		<link>http://www.ardamis.com/2006/07/10/wordpress-googlebot-404-error/#comment-26996</link>
		<dc:creator>web dev guy</dc:creator>
		<pubDate>Mon, 01 Feb 2010 20:29:45 +0000</pubDate>
		<guid isPermaLink="false">http://www.ardamis.com/2006/07/10/wordpress-googlebot-404-error/#comment-26996</guid>
		<description>I use pages instead of posts, and comment #2 worked like a charm for me.

Simply adding :
&lt;code&gt;
 header(&quot;HTTP/1.1 200 OK&quot;);
 header(&quot;Status: 200 All rosy&quot;) ;
&lt;/code&gt;

to the index.php in the project root was the key.</description>
		<content:encoded><![CDATA[<p>I use pages instead of posts, and comment #2 worked like a charm for me.</p>
<p>Simply adding :<br />
</p><pre><code>
 header("HTTP/1.1 200 OK");
 header("Status: 200 All rosy") ;
</code></pre><p></p>
<p>to the index.php in the project root was the key.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Daniel Noll</title>
		<link>http://www.ardamis.com/2006/07/10/wordpress-googlebot-404-error/#comment-24127</link>
		<dc:creator>Daniel Noll</dc:creator>
		<pubDate>Fri, 27 Nov 2009 13:36:57 +0000</pubDate>
		<guid isPermaLink="false">http://www.ardamis.com/2006/07/10/wordpress-googlebot-404-error/#comment-24127</guid>
		<description>Thank you so much for this.  I was pulling my hair out with 404 errors, eventually to the point where Googlebot wasn&#039;t seeing half my site.</description>
		<content:encoded><![CDATA[<p>Thank you so much for this.  I was pulling my hair out with 404 errors, eventually to the point where Googlebot wasn&#8217;t seeing half my site.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jordan</title>
		<link>http://www.ardamis.com/2006/07/10/wordpress-googlebot-404-error/#comment-21442</link>
		<dc:creator>Jordan</dc:creator>
		<pubDate>Thu, 01 Oct 2009 17:58:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.ardamis.com/2006/07/10/wordpress-googlebot-404-error/#comment-21442</guid>
		<description>We had exactly this problem on our website – thank you for sharing the code. Fixes it perfectly!</description>
		<content:encoded><![CDATA[<p>We had exactly this problem on our website – thank you for sharing the code. Fixes it perfectly!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jake</title>
		<link>http://www.ardamis.com/2006/07/10/wordpress-googlebot-404-error/#comment-19022</link>
		<dc:creator>Jake</dc:creator>
		<pubDate>Thu, 20 Aug 2009 16:35:09 +0000</pubDate>
		<guid isPermaLink="false">http://www.ardamis.com/2006/07/10/wordpress-googlebot-404-error/#comment-19022</guid>
		<description>This page really help me a lot. Thanks a lot. I had been trying to figure for 1 hr why I am getting a 404 when everything else seem right</description>
		<content:encoded><![CDATA[<p>This page really help me a lot. Thanks a lot. I had been trying to figure for 1 hr why I am getting a 404 when everything else seem right</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Uk shore</title>
		<link>http://www.ardamis.com/2006/07/10/wordpress-googlebot-404-error/#comment-17926</link>
		<dc:creator>Uk shore</dc:creator>
		<pubDate>Wed, 01 Apr 2009 13:51:57 +0000</pubDate>
		<guid isPermaLink="false">http://www.ardamis.com/2006/07/10/wordpress-googlebot-404-error/#comment-17926</guid>
		<description>Thanks xurizaemon and ardamin,
I&#039;ve spent over two hours fiddling with the .htaccess file to make the 404s go away (google webmasters kept saying some of my non-blog pages didn&#039;t exist), and the .htaccess wasn&#039;t even the issue - it was the wp-blog-header file...
Thanks again!</description>
		<content:encoded><![CDATA[<p>Thanks xurizaemon and ardamin,<br />
I&#8217;ve spent over two hours fiddling with the .htaccess file to make the 404s go away (google webmasters kept saying some of my non-blog pages didn&#8217;t exist), and the .htaccess wasn&#8217;t even the issue &#8211; it was the wp-blog-header file&#8230;<br />
Thanks again!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Appeler des fonctions wordpress en dehors du blog - 2 &#124; Encre de Lune</title>
		<link>http://www.ardamis.com/2006/07/10/wordpress-googlebot-404-error/#comment-17706</link>
		<dc:creator>Appeler des fonctions wordpress en dehors du blog - 2 &#124; Encre de Lune</dc:creator>
		<pubDate>Tue, 10 Feb 2009 07:09:59 +0000</pubDate>
		<guid isPermaLink="false">http://www.ardamis.com/2006/07/10/wordpress-googlebot-404-error/#comment-17706</guid>
		<description>[...] en appliquant la solution trouvée déj</description>
		<content:encoded><![CDATA[<p>[...] en appliquant la solution trouvée déj</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Wordpress Blog Header Slowness Problem Fix &#124; Heaven Interactive</title>
		<link>http://www.ardamis.com/2006/07/10/wordpress-googlebot-404-error/#comment-15215</link>
		<dc:creator>Wordpress Blog Header Slowness Problem Fix &#124; Heaven Interactive</dc:creator>
		<pubDate>Tue, 27 May 2008 09:12:26 +0000</pubDate>
		<guid isPermaLink="false">http://www.ardamis.com/2006/07/10/wordpress-googlebot-404-error/#comment-15215</guid>
		<description>[...] thanks to these dudes for telling me about [...]</description>
		<content:encoded><![CDATA[<p>[...] thanks to these dudes for telling me about [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: xurizaemon</title>
		<link>http://www.ardamis.com/2006/07/10/wordpress-googlebot-404-error/#comment-552</link>
		<dc:creator>xurizaemon</dc:creator>
		<pubDate>Mon, 27 Nov 2006 23:26:20 +0000</pubDate>
		<guid isPermaLink="false">http://www.ardamis.com/2006/07/10/wordpress-googlebot-404-error/#comment-552</guid>
		<description>If you don&#039;t add the Status: header, you still get a &quot;Status: 404 File Not Found&quot; - which is NOT a 404 header per se, but still not really meant to be there. There may be a more correct 200 Status header, but that works :)

http://paperfish.co.nz/paperfish/wp-content/themes/paperfish/paperfish-js.php is the evaluated JS file</description>
		<content:encoded><![CDATA[<p>If you don&#8217;t add the Status: header, you still get a &#8220;Status: 404 File Not Found&#8221; &#8211; which is NOT a 404 header per se, but still not really meant to be there. There may be a more correct 200 Status header, but that works <img src='http://www.ardamis.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p><a href="http://paperfish.co.nz/paperfish/wp-content/themes/paperfish/paperfish-js.php" rel="nofollow">http://paperfish.co.nz/paperfish/wp-content/themes/paperfish/paperfish-js.php</a> is the evaluated JS file</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: xurizaemon</title>
		<link>http://www.ardamis.com/2006/07/10/wordpress-googlebot-404-error/#comment-551</link>
		<dc:creator>xurizaemon</dc:creator>
		<pubDate>Mon, 27 Nov 2006 23:24:59 +0000</pubDate>
		<guid isPermaLink="false">http://www.ardamis.com/2006/07/10/wordpress-googlebot-404-error/#comment-551</guid>
		<description>I made a similar workaround, but not using have_posts() because I wasn&#039;t using posts.

Instead I wanted to insert WP functions in a js.php file - which obviously doesn&#039;t want WP throwing in its templating.

Here&#039;s my fix, via a link to the Trac ticket on trac.wordpress.org:

http://trac.wordpress.org/ticket/2984

&lt;code&gt;
&lt;?
  define(&#039;WP_USE_THEMES&#039;, false) ;
  require(&#039;../../../wp-blog-header.php&#039;);
  header(&quot;HTTP/1.1 200 OK&quot;);
  header(&quot;Status: 200 All rosy&quot;) ;
 ?&gt;
&lt;/code&gt;

Works a treat over at http://paperfish.co.nz/paperfish/ - see http://paperfish.co.nz/paperfish/wp-content/themes/paperfish/paperfish-js.phps</description>
		<content:encoded><![CDATA[<p>I made a similar workaround, but not using have_posts() because I wasn&#8217;t using posts.</p>
<p>Instead I wanted to insert WP functions in a js.php file &#8211; which obviously doesn&#8217;t want WP throwing in its templating.</p>
<p>Here&#8217;s my fix, via a link to the Trac ticket on trac.wordpress.org:</p>
<p><a href="http://trac.wordpress.org/ticket/2984" rel="nofollow">http://trac.wordpress.org/ticket/2984</a></p>
<p></p><pre><code>
&lt;?
  define('WP_USE_THEMES', false) ;
  require('../../../wp-blog-header.php');
  header("HTTP/1.1 200 OK");
  header("Status: 200 All rosy") ;
 ?&gt;
</code></pre><p></p>
<p>Works a treat over at <a href="http://paperfish.co.nz/paperfish/" rel="nofollow">http://paperfish.co.nz/paperfish/</a> &#8211; see <a href="http://paperfish.co.nz/paperfish/wp-content/themes/paperfish/paperfish-js.phps" rel="nofollow">http://paperfish.co.nz/paperfish/wp-content/themes/paperfish/paperfish-js.phps</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Scrivs</title>
		<link>http://www.ardamis.com/2006/07/10/wordpress-googlebot-404-error/#comment-236</link>
		<dc:creator>Scrivs</dc:creator>
		<pubDate>Sun, 06 Aug 2006 23:45:06 +0000</pubDate>
		<guid isPermaLink="false">http://www.ardamis.com/2006/07/10/wordpress-googlebot-404-error/#comment-236</guid>
		<description>You might have found a solution for this already, but we were having the same problem at &lt;a href=&quot;http://9rules.com/&quot; rel=&quot;nofollow&quot;&gt;9rules&lt;/a&gt; and I found that sticking this line of code worked for us.

&lt; ?php if (!have_posts()) { header(&#039;HTTP/1.1 200 OK&#039;); } ?&gt;

It forces WP to throw a 200 code to all robots instead of the 404 so they can spider and index all of your pages. Hope that helped some if you still needed it.</description>
		<content:encoded><![CDATA[<p>You might have found a solution for this already, but we were having the same problem at <a href="http://9rules.com/" rel="nofollow">9rules</a> and I found that sticking this line of code worked for us.</p>
<p>< ?php if (!have_posts()) { header('HTTP/1.1 200 OK'); } ?></p>
<p>It forces WP to throw a 200 code to all robots instead of the 404 so they can spider and index all of your pages. Hope that helped some if you still needed it.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
