Options -Indexes
RewriteEngine On

RewriteRule ^(?:app|config|database|routes|storage|tests|\.codex-work)(?:/|$) - [F,L,NC]
RewriteRule ^$ public/index.php [QSA,L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.+)$ public/index.php?url=$1 [QSA,L]

