Failed URL for HTTP Error Code Redirect Pages

Custom Apache Error Handler – Get the Error URL in PHP

Scenario   You are using an Apache and PHP environment.  You provide an ErrorDocument directive to create a common landing page for HTTP Errors (such as a custom 404 error page.)  This may have been setup either in your http.conf file or via an .htaccess file.  The rule might look like the following: ErrorDocument 404 /errors/index.php […]