Options -Indexes
RewriteEngine On

# Nunca publicar archivos internos o secretos.
RewriteRule ^(?:app|bin|config|database|storage|vendor|views)(?:/|$) - [F,L,NC]
RewriteRule ^(?:\.env|composer\.(?:json|lock)|README\.md)$ - [F,L,NC]

RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^ - [L]

RewriteRule ^ index.php [QSA,L]

