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

View your website in older browser versions

As developers and webmasters it is always important to make sure your website works in several...

What are these vt directories?

Those are FrontPage extension directories. If you have and no longer need them you can uninstall...

Redirect http to https and www

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

I can not get the transfer authorization email can it be forwarded to a different email address?

The authorization has to be authorized by the registered contact for the domain. We cannot change...

My site was hacked

This typically occurs when you are running a script/app on your website which is out-dated and...