Thank you! but page.php is still in use so when we add
header("HTTP/1.0 404 Not Found");
header("Status: 404 Not Found");
we are automaticly redirecting all pages regardless of empty or not.
I am looking for more if the page empty do 404 if not display the whatever information comes from mysql db?
does this make sense?
Thanks
That wont always work, when you throw an error page, you should do it like so:
header("HTTP/1.0 404 Not Found");
header("Status: 404 Not Found");
you will also want to make a custom 404 page, and in that case you would do this:
// If the file is not found run this:
header("HTTP/1.0 404 Not Found");
header("Status: 404 Not Found");
readfile("/errors/404.html");
exit;