Web Page Error Script Trap

liunx

Guest
I'd like to write a small script to trap web page errors (such as 404's)<br /><br />All I need is the page called and a way to tell the server to call the script rather than the generic error page.<br /><br />Is that in htaccess, or somewhere else?<br /><!--content-->
You can either set it up from cpanel (custom error pages) or direct in .htaccess <br /><br />In .htaccess the format is <br /><br />ErrorDocument code /directory/filename.ext<br /><br />so for 404 <br /><br />ErrorDocument 404 my404error.php<br /><br /><!--content-->
 
Back
Top