Options -Indexes
RewriteEngine On

# Forzar HTTPS
RewriteCond %{HTTPS} off
RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

# Página principal
DirectoryIndex index.php

<FilesMatch "\.(sql|log|md|env)$">
    Order allow,deny
    Deny from all
</FilesMatch>
