I've been trying to figure out PHP and 404 errors.
If somebody typesI want my PHP to deliver the content.Code:
If they typeI want to return a 404 error and then after a couple of seconds return to the homepage.Code:
I tried:But according to Live HTTP headers add-on in Firefox, it loadsCode:
header("HTTP/1.0 404 Not Found");
HTTP/1.1 200 OK
How can properly I deliver a 404?
Thanks a lot