<IfModule mod_rewrite.c>
    RewriteEngine On

    # Forward everything into the Laravel public/ folder.
    # This lets you upload the whole project to public_html and have it work
    # without changing the document root.
    RewriteRule ^(\.well-known/.*)$ - [L]
    RewriteCond %{REQUEST_URI} !^/public/
    RewriteRule ^(.*)$ public/$1 [L]
</IfModule>

# Block direct access to sensitive files.
<FilesMatch "^\.env|composer\.(json|lock)|package\.json|artisan$">
    Require all denied
</FilesMatch>
