tomrshl
02-21-2010, 03:45 PM
I've been trying to figure out PHP and 404 errors.
If somebody types http://site.com/?id=valid I want my PHP to deliver the content.
If they type 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: header("HTTP/1.0 404 Not Found"); But according to Live HTTP headers add-on in Firefox, it loads HTTP/1.1 200 OK
first.
How can properly I deliver a 404?
Thanks a lot
If somebody types http://site.com/?id=valid I want my PHP to deliver the content.
If they type 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: header("HTTP/1.0 404 Not Found"); But according to Live HTTP headers add-on in Firefox, it loads HTTP/1.1 200 OK
first.
How can properly I deliver a 404?
Thanks a lot