Options -Indexes
DirectoryIndex index.php
<IfModule mod_authz_core.c>
  <FilesMatch "^(config\.php|config\.php\.example|bootstrap\.php|database\.sql|database_upgrade_v2\.sql|composer\.(json|lock)|README\.md|UPGRADE_EXISTING\.md)$">
    Require all denied
  </FilesMatch>
</IfModule>
<IfModule !mod_authz_core.c>
  <FilesMatch "^(config\.php|config\.php\.example|bootstrap\.php|database\.sql|database_upgrade_v2\.sql|composer\.(json|lock)|README\.md|UPGRADE_EXISTING\.md)$">
    Order allow,deny
    Deny from all
  </FilesMatch>
</IfModule>
<IfModule mod_headers.c>
  Header always set X-Content-Type-Options "nosniff"
  Header always set Referrer-Policy "strict-origin-when-cross-origin"
  Header always set X-Frame-Options "SAMEORIGIN"
</IfModule>
