Reputation: 165
When i uncomment the display_errors line in .htaccess the page throws an internal 500 error.
I have turned every single line on one by one to see where the issue was. But it throws an error only when php_value is active. The thing i don't understand is, this file has worked before. But since today it no longer works.
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME}\.php -f
RewriteRule ^(.*)$ $1.php
ErrorDocument 404 /404.php
ErrorDocument 500 /500.php
ErrorDocument 403 /403.php
#php_value display_errors 0
Options -Indexes
<FilesMatch "^\.">
require all denied
</FilesMatch>
<Files .htaccess>
require all denied
</Files>
<FilesMatch "database\.php|functions\.php|htmlfunctions\.php|footer\.php|header\.php">
require all denied
</FilesMatch>```
Upvotes: 1
Views: 463
Reputation: 856
try php_flag display_errors off
You may need to allow override for your htaccess
please see: https://php.net/manual/en/configuration.changes.php
Upvotes: 1