Home arrow Apache arrow Trap And Get Notified: A Practical Solution To 404 Errors With PHP
APACHE

Trap And Get Notified: A Practical Solution To 404 Errors With PHP


Tired of seeing the same 404 errors in your log files? In this article Matt uses .htaccess and PHP to combat nasty 404 errors and get notified about them immediately as they occur.

Author Info:
By:
Rating: 4 stars4 stars4 stars4 stars4 stars / 7
August 13, 2002
TABLE OF CONTENTS:
  1. · Trap And Get Notified: A Practical Solution To 404 Errors With PHP
  2. · Creating the .htaccess file
  3. · Creating the PHP Error Document
  4. · Uploading The Files
  5. · Conclusion

print this article
SEARCH DEVARTICLES

Trap And Get Notified: A Practical Solution To 404 Errors With PHP
(Page 1 of 5 )

In this tutorial you will find out how to create customised error pages such as the infamous 404 and be notified by email when one of these error pages is shown on your site. Although .htaccess is traditionally used for security on websites, it can actually be used for many other purposes -- one being error document handling.

Although you can use the server's customised error messages, you never know when one is shown. With .htaccess, you can be notified as soon as any error page is shown and how the error page was called, ie: what the user entered in order for the error to be called.

This tutorial will only cover creating the 404 error page, but you will see how easy it is to actually create more, for example 401, 403 and 500 errors, etc.
blog comments powered by Disqus
APACHE ARTICLES

- Programmatically Manipulating Microsoft Exce...
- Installing PHP under Windows
- Compressing Web Content with mod_gzip and mo...
- Compressing Web Output Using mod_deflate and...
- Setting Up Apache 2.0.45 to Parse PHP Pages
- Custom Error 404 Documents with PHP
- Using Apache and PHP on Mac OS X
- ASP: Active Sessions, Active Logins and Tota...
- Working With Oracle on Windows: Part 1
- The Quick-n-Dirty Guide to Setting Up Apache...
- Installing Apache With SSL: The Complete Gui...
- 7 Powerful .htaccess Customization Tips
- Trap And Get Notified: A Practical Solution ...
- One Way To Use Server Side Includes
- Using ForceType For Nicer Page URLs

Watch our Tech Videos 
Dev Articles Forums 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us 
Weekly Newsletter
 
Developer Updates  
Free Website Content 
Contact Us 
Site Map 
Privacy Policy 
Support 

Developer Shed Affiliates

 




© 2003-2017 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap
Popular Web Development Topics
All Web Development Tutorials