Hi. When using the following code in a script should i see a "File not found" in my server's log file?
$relative_url = "404.html";
header("HTTP/1.0 404 Not Found");
header("Location: [url]http://[/url]".$SERVER['HTTP_HOST']
.dirname($SERVER['PHP_SELF'])
."/".$relative_url);
I'm being redirected to the 404.html but i'm not sure if the 404 status is being sent.
I use this in case a mysql query returns no results because of an error. In other words, if a search engine crawls a certain page which queries a db and it doesn't exist, will it get a 404?
Thanks,
john