Why is this not working, as in the pre-set 404 page is not loaded:
header(\"HTTP/1.0 404 Not Found\");
exit;
.htaccess
has the
This is mostly likely because Apache has already passed the initial request off to a PHP page to handle. Most likely because you have a front controller implementation in effect and are redirecting all web requests to this page. This leaves the responsibility of 404s to your application along with an appropriate 404 page to display.