<IfModule mod_rewrite.c>
    Options -Indexes
    RewriteEngine On

    RewriteRule ^\.env(?:\.|$) - [F,L]
    RewriteRule ^(?:app|bootstrap|config|database|resources|routes|storage|vendor)(?:/|$) - [F,L]

    RewriteCond %{REQUEST_URI} !^/public(?:/|$)
    RewriteRule ^(.*)$ public/$1 [L]
</IfModule>
