Forum Moderators: coopster
If the script doesn't perform a redirect, then the script will run
header("HTTP/1.1 404 Not Found"); and then display an error message.
My problem is this, when I run header("HTTP/1.1 404 Not Found"); I get a blank page. I checked the header output using curl -D and all of my error codes are appended with "OK". When testing the 301, I get "HTTP/1.1 301 OK" and testing the 404 I get "HTTP/1.1 404 OK". If I remove header("HTTP/1.1 404 Not Found"); from my script, my error message is displayed but the header returns "HTTP/1.1 200 OK". Has anyone else had this problem and found a solution?