Options -Indexes
DirectoryIndex index.php

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{THE_REQUEST} \s/+(.*/)?(?:includes|database|docs|tests)/ [NC]
RewriteRule ^ - [F,L]
</IfModule>

<FilesMatch "(^\.|\.env|\.ini|\.log|\.sql|\.bak|\.old|\.dist|\.example\.php|config\.local\.php|composer\.(json|lock)|package(-lock)?\.json)$">
  Require all denied
</FilesMatch>

<IfModule mod_headers.c>
Header always set X-Content-Type-Options "nosniff"
Header always set X-Frame-Options "SAMEORIGIN"
Header always set Referrer-Policy "strict-origin-when-cross-origin"
</IfModule>

<IfModule mod_php.c>
php_flag display_errors Off
php_flag log_errors On
php_value upload_max_filesize 20M
php_value post_max_size 24M
php_value max_execution_time 120
</IfModule>
