Apache’s ErrorDocument directive does not redirect

A few different mis-conceptions in the question. The following PHP code: header(“HTTP/1.0 500 Internal Server Error”); die(); Will never trigger an Apache error page – it’s triggering your browser’s default error page. Once control has been given over to PHP, it does not go back to Apache for error handling. ErrorDocument only works for error … Read more