Pendragon Posted August 13, 2007 Posted August 13, 2007 I'd like to write a small script to trap web page errors (such as 404's) All I need is the page called and a way to tell the server to call the script rather than the generic error page. Is that in htaccess, or somewhere else? Quote
TCH-Andy Posted August 13, 2007 Posted August 13, 2007 You can either set it up from cpanel (custom error pages) or direct in .htaccess In .htaccess the format is ErrorDocument code /directory/filename.ext so for 404 ErrorDocument 404 my404error.php Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.