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

Redirect Internet Explorer visitors to a supported browsers page

Redirect users of Internet Explorer to a supported browsers page or any other page.  To do this,...

Point Multiple Domains to the Same Website

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

Why can I not ping my domain?

For security purposes we have closed off the ICMP port which is used for ping.

“Not Secure” Web Error

In this day and age browsers now default to using https:// instead of http://. We make SSL...

What are some tools are available to optimize my website?

There are many great tools to optimize your website. There is an optimize tool in your hosting...