Hello
This is regarding setting up a PHP-custom error handler for Apache error(404) i.e. "File Not Found".
This my my .htaccess in root:
ErrorDocument 404 http://rswami.port.com/filenotfound.php
I am trying to email myself(webmaster) the full details like page not found(missing link), referring URL etc., whenever my ErrorDocument is displayed at client's browser. But the outpur is annoying like
file requested is displayed as http://rswami.port.com/filenotfound.php (error page itself) while it should be the file name of missing one which triggered this error.
can any body help me to suggest a way to trap apache errors in PHP, i have tried a lot.
It will be also very nice if some suggests some ready to use header compression software including the removal of white spaces, tab and new line etc from HTML contents for client.
thanx
-Rakesh Swami