# Force HTTPS (if not already handled at LB)
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{HTTPS} !=on
RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
</IfModule>

# Security: disable directory indexes and dotfiles
Options -Indexes
<FilesMatch "^\.">
  Require all denied
</FilesMatch>
