<IfModule mod_rewrite.c>
    RewriteEngine On

    # Never expose application source, secrets, or tooling over HTTP.
    RewriteRule ^(\.env|\.env\..*|\.git|\.github|\.cursor|composer\.(json|lock)|artisan|phpunit\.xml.*)$ - [F,L,NC]
    RewriteRule ^(app|bootstrap|config|database|resources|routes|storage|tests|vendor|node_modules)(/|$) - [F,L,NC]

    # Document root should be /public — route everything else there.
    RewriteRule ^(.*)$ public/$1 [L]
</IfModule>

Options -Indexes
