Options -Indexes
DirectoryIndex index.php
<IfModule mod_headers.c>
 Header always set X-Content-Type-Options "nosniff"
 Header always set Referrer-Policy "same-origin"
 Header always set X-Frame-Options "DENY"
</IfModule>
<FilesMatch "(?i)\.(sqlite(?:-wal|-shm)?|db|log|ini|sql|bak|zip|env|key|lock|guard|txt)$">
 Require all denied
</FilesMatch>


# Keep the hosting provider PHP handler outside the portable package.
<IfModule mod_rewrite.c>
 RewriteEngine On
 RewriteRule ^(?:private|lib|deploy)(?:/|$) - [F,L,NC]
 RewriteRule (^|/)\.(?!well-known(?:/|$)) - [F,L]
 RewriteRule ^uploads/.*\.(?:php[0-9]*|phtml|phar|cgi|pl|py|sh)(?:[./]|$) - [F,L,NC]
 RewriteCond %{HTTP:Authorization} .
 RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
</IfModule>
