All requests go through index.php, and if content was not found I do:
header("HTTP/1.0 404 Not Found");
exit;
and expect to see contents of /404 as defined in .htaccess: ErrorDocument 404 /404
The problem is that I see a blank page on Chrome and Firefox, but on IE see its 404 page (not mine, browsers 404 page).
Sending header is not enough to handle redirect, so it's expected to be done by .htaccess, but fails. Should I redirect it whith PHP like so:
header("HTTP/1.0 404 Not Found");
header("Location: " . $dirpath . "404");
/404is a 404 and therefore your 404 is 404ing.ErrorDocument 404 /index.phpgives same result as described in question