Options -Indexes
<IfModule mod_rewrite.c>
    RewriteEngine On
    # Never expose Laravel source, environment files, dependencies, or storage through HTTP.
    RewriteRule ^(app|bootstrap|config|database|resources|routes|storage|vendor|tests|public)(/|$) - [F,L,NC]
    RewriteRule ^(\.env|artisan|composer\.(json|lock)|README\.md|LICENSE|phpunit\.xml)(/|$) - [F,L,NC]
    RewriteCond %{HTTP:Authorization} .
    RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
    RewriteCond %{REQUEST_FILENAME} -f [OR]
    RewriteCond %{REQUEST_FILENAME} -d
    RewriteRule ^ - [L]
    RewriteRule ^ index.php [L]
</IfModule>
<FilesMatch "^\.">
    Require all denied
</FilesMatch>
