# .htaccess
Options -Indexes

<IfModule mod_rewrite.c>
    RewriteEngine On
    
    # HTTPS Force (Uncomment in production)
    # RewriteCond %{HTTPS} off
    # RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

    # Prevent access to config and includes
    RewriteRule ^(config|includes)/ - [F,L]
    RewriteRule ^docs/ - [F,L]
    RewriteRule \.sql$ - [F,L]
</IfModule>

<IfModule mod_headers.c>
    Header set X-Content-Type-Options "nosniff"
    Header set X-XSS-Protection "1; mode=block"
    Header set X-Frame-Options "SAMEORIGIN"
    # Header set Strict-Transport-Security "max-age=31536000; includeSubDomains"
</IfModule>
