Options -Indexes

DirectoryIndex index.php

<IfModule mod_rewrite.c>
    RewriteEngine On
</IfModule>

# Basic security headers
<IfModule mod_headers.c>
    Header always set X-Frame-Options "SAMEORIGIN"
    Header always set X-Content-Type-Options "nosniff"
    Header always set Referrer-Policy "same-origin"
</IfModule>

# Protect sensitive files
<FilesMatch "^(config|config\.example|db|auth|helpers)\.php$">
    Require all denied
</FilesMatch>

<FilesMatch "\.(sql|log|env|bak|old|zip)$">
    Require all denied
</FilesMatch>
