Custom Error Page Generator
Ever wanted to have more control over your error pages? Maybe a simple e-mail saying someone accessed a specific page, and that page was not found. This is very useful if you have large websites, and cannot check each and every link.
We have added a feature that stores a cookie whenever visits a page with your custom error page. If the user goes to the same page twice, only one e-mail will be sent.
Follow the directions below. Step 1 generates each error page you would like- if you want a 404 error (for page could not be found), enter 404, all of the common error codes are below. Step 2 generates the functions.inc.php (the engine behind the script) file needed for this script to work.
Common Error Codes
- 400 - Bad request
- 401 - Authorization required
- 403 - Forbidden
- 404 - Page could not be found
- 500 - Internal server error
Continue with the directions below; be sure to enter the correct error number (from the list above)
Step 1 Directions
Enter in the name of the error. (ie. 404)
Next, enter the location of the error folder. If my error page folder was located at http://www.mrbobswebdesign.com/errorpages/ then I would enter /errorpages/ (Be sure to use both of the forward slashes)
Error Page Generator
Step 2 Directions
You must put this in the same folder as you entered above or the script will not work.
Enter the e-mail address you would like the form to send to.
When entering your domain name, use the format domain.com DO NOT add http:// or www to the domain- doing so will cause the script to not work.