[dropcap]P[/dropcap]revent public display of PHP errors via htaccess
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
Protect your site’s PHP error log via htaccess
Order allow,deny
Deny from all
Satisfy All
Controlling the level of PHP error reporting
php_value error_reporting integer
.htaccess and Mod Rewrite
https://www.youtube.com/watch?v=hgizzFB4DFM
Source: YouTube