I use my .htaccess file to redirect visitors with errors to my custom error pages.
The server is an Apache with PHP 5.2 so I code in PHP.
I wish to know, on my PHP error pages, what page did the visitor request and gave an error?
should give you the information.
The content is written by members of the stackoverflow.com community.
It is licensed under cc-wiki