Disable error_log via htaccess

Prevent public display of PHP errors via htaccess

# supress php errors
php_flag display_startup_errors off
php_flag display_errors off
php_flag html_errors off
php_value docref_root 0
php_value docref_ext 0

Disable (log) your site’s PHP errors via htaccess

php_flag  log_errors off

  • 136 Users Found This Useful

Was this answer helpful?

Related Articles

When I upload an htaccess file it disappears

On unix/linux systems, files that start with a . are considered hidden so many ftp programs do...

Point Multiple Domains to the Same Website

Pointing other domains to your website is easy! Simply make sure their DNS settings are pointing...

Error 401 Unauthorized

This can occur when a web page requires authorization or a login to view the contents. If none...

Common Search Engine Optimization Tips

Get other websites to link to you. Have your website linked and posted in socal media...

Sub-Domain times out

When you add a sub-domain and it times out make sure you do not have redirection set from that...