Click to See Complete Forum and Search --> : site wide error page?
SH100
01-15-2008, 01:19 PM
There are no known errors in my site still as a precaution I want to add a error page for whole site. I mean for any error on any page in whole website, this page will get called. I have done that in coldfusion can it be done in php?
in signle file something like in .htaccess.
tfk11
01-15-2008, 03:17 PM
There is no such thing as a "site wide" php script. You can however use ErrorDocument directives in .htaccess to configure the web server to use a php script to handle errors... if the server is setup to allow it.
SH100
05-13-2008, 03:38 PM
Thank you this worked.
ErrorDocument 500 http://foo.example.com/cgi-bin/tester
ErrorDocument 404 /cgi-bin/bad_urls.pl
ErrorDocument 401 /subscription_info.html
ErrorDocument 403 "Sorry can't allow you access today"
http://httpd.apache.org/docs/2.0/mod/core.html#errordocument