Published February 18th, 2003 by Jim O'Halloran
Custom Apache Error Pages
ONLamp.com shows us how to create Custom Error Pages with PHP and Apache. Good stuff…
Building a custom error page with PHP and Apache requires two steps. You need to tell Apache to run a PHP program when it encounters a 404 (”Page Not Found”) error. And you need to write the corresponding program that takes the appropriate action.