Home arrow Apache arrow Page 5 - 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 - Conclusion
(Page 5 of 5 )

This is a great way to keep your website up-to-date, being notified of every "page not found" error occurrence. Of course, there are many other pages that you can create for a variety of error messages, some of the most common include:

401 - Authorization Required
400 - Bad request
403 - Forbidden
500 - Internal Server Error
404 - Wrong page

You could also include other variables in the email, such as the time of the error or who was visiting the site (IP Address). For a full list of environment variables, visit NCSA.
DISCLAIMER: The content provided in this article is not warranted or guaranteed by Developer Shed, Inc. The content provided is intended for entertainment and/or educational purposes in order to introduce to the reader key ideas, concepts, and/or product reviews. As such it is incumbent upon the reader to employ real-world tactics for security and implementation of best practices. We are not liable for any negative consequences that may result from implementing any information covered in our articles or tutorials. If this is a hardware review, it is not recommended to open and/or modify your hardware.

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