Options -Indexes

<IfModule mod_rewrite.c>
RewriteEngine On

RewriteRule ^(app|config|scripts|storage|legacy)/ - [F,L]
RewriteRule ^public/(.*)$ public/$1 [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^ index.php [L]
</IfModule>
