Options -Indexes

# Keep configuration and hidden files inaccessible.
<FilesMatch "^(config\.php|\.env|.*\.bak|.*\.sql)$">
    Require all denied
</FilesMatch>

# If your hosting provider supports it, enforce HTTPS.
RewriteEngine On
RewriteCond %{HTTPS} !=on
RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
