I've been trying to figure out PHP and 404 errors.
If somebody types
Code:
http://site.com/?id=valid
I want my PHP to deliver the content.
If they type
Code:
http://site.com/?id=invalid
I want to return a 404 error and then after a couple of seconds return to the homepage.
I tried:
Code:
header("HTTP/1.0 404 Not Found");
But according to Live HTTP headers add-on in Firefox, it loads
first.
How can properly I deliver a 404?
Thanks a lot