I have made a custom 404 page at
I have edited my .htaccess file to send broken links to this page using the code widget here:
It all works great - except, I don’t know how to set the HTML status code of my 404 page correctly. It currently returns a 200 status code.
I have tried both:
header(“HTTP/1.0 404 Not Found”);
header($_SERVER[“SERVER_PROTOCOL”]." 404 Not Found");
In the 404 page header code, but still getting the 200 code returned. What am I doing wrong?