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

Some visitors in China and Russia cannot reach my website

Some networks known for abusive activity such as hacking in countries such as China, North Korea...

Set CORS header to Allow Access for any Incoming Domain

The following may be used to set to always set the CORS header for any incoming domains without...

Redirect http to https and www

To forward a website to use both www. and https:// use the following in an .htaccess file:...

Can you write a script for me?

We do not write scripts but will be more than happy to guide you in the right direction. Most the...

How can I turn off directory indexing?

In the directory that you wish you turn off directory indexing, you can do it under Index Manager...