Reputation: 1122
I have this code to suppress all errors. When an error occurs a blank page appears, how can I replace this blank page with a custom page?
php_flag log_errors on
php_value error_log PHPerrors.log
## prevent access to PHP error log ##
<Files PHPerrors.log>
Order allow,deny
Deny from all
Satisfy All
</Files>
## supress php errors ##
php_flag display_startup_errors off
php_flag display_errors off
php_flag html_errors off
Upvotes: 1
Views: 85
Reputation: 7596
You should define file for 500 error:
ErrorDocument 500 ./errors/500.html
Upvotes: 2