I have my script set up so that if a wrong parameter is sent in the URL, a 404 error header is sent to the client and the script exitted.
Code: Select all
if (..wrong param..)
{
header("HTTP/1.0 404 Not Found");
exit();
}
It seems to be working fine, except that when accessing this page (the url with the wrong param), it is coming up as a blank page, not the usual 404 error page I have setup on my server... you know, the standard:
Not Found
The requested URL /nosuchpage.php?id=2 was not found on this server.
Any idea how I can get this page to display? As far as search engines are concerned, is what I have done the same as if the file never existed? Thanks!