PHP Logo404Handler


[Scripts Archive Main] | [Download Now | Requirements | Online Documentation ]

404Handler will trap those dreaded "404 Not Found" errors on your site and email you the details of each 404. You can choose to receive email on one of three levels: no mail, mail only if the 404 was generated by a link on your own site, or mail warnings of all 404 errors regardless of where the link is located.

Requirements:

  • PHP 4.0 or newer
  • sendmail must be installed and running on your system

Documentation

To install 404Handler, set the configuration variables at the top of the script. Upload the script in ascii mode to your website's document root (e.g. the public_html directory). Next, you'll need to edit the .htaccess file in your document root. Include the following line at the top of the .htaccess file:

ErrorDocument 404 /404Handler.php

Be sure to use the path that corresponds to the location of 404Handler on your system. Finally, upload your new .htaccess file in ascii mode and give it 755 permissions. 404 errors on your site should now be passed to 404Handler instead of the default 404 page.




Copyright 1999-2008 Shaun - Use this form to contact me.
This page looks best in every browser. That's why it doesn't have lots of bells and whistles.