Is there a way to have a php script return a specific http status code rather than relying on apache to do it?
header("HTTP/1.0 404 Not Found");
http://php.net/header
You can set header values manually with php, for example:
<?php
header("HTTP/1.0 404 Not Found");
?>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With