I included a header("HTTP/1.0: 200 OK\n") in the php script and also in the htaccess file:
Header set Status "HTTP/1.1 200 OK"
Header set Expires NOW+400000
ErrorDocument 404 /scifi/content_creator.php
Now, when I checked a url with the SimSpider tool I got a Status of 404 Not found (though the content was correctly received).
I tested the same page with the Server response tool and got:
Server Response: [mydomain.com...]
Status: HTTP/1.1 404 Not found
Server: Zeus/3.4
Date: Sat, 26 Jan 2002 11:04:27 GMT Connection: close Content-Type: text/html
Expires: Thu, 31 Jan 2002 02:11:07 GMT
Status: "HTTP/1.1 200 OK"
I'm positively clueless how SE spiders will interpret that.
I tested it with altavista's basic submit and it seemed to read it. At least it didn't note a Not Found error.
My concern is google because I get most referrals from this SE.
Can someone help me how to solve this or do I worry too much?
AFAIK the only way to really control the headers is to go for nph [webmasterworld.com] scripts.
HTTP/1.1 200 OK
Date: Mon, 28 Jan 2002 16:49:34 GMT
Server: Apache/1.3.22 (Unix) PHP/4.1.1 mod_gzip/1.3.19.1a
X-Powered-By: PHP/4.1.1
Connection: close
Content-Type: text/html
The only difference I can see here is that I only use htaccess to set an ErrorDocument, not to set any headers. I would assume that this is your problem, as setting headers more than once usually causes bugs.
AFAIK the only way to really control the headers is to go for nph [webmasterworld.com] scripts.
You need to nph the script otherwise apache will surcomvent your script's header. Try doing a search for 'nph' here, there are some posts that will help you out.
Has anyone experiences with this combination?