Options -Indexes
<FilesMatch "^(\.env.*|composer\.(json|lock)|artisan|.*\.(sql|log|zip|md|txt))$">
Require all denied
</FilesMatch>
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteRule ^(?:app|bootstrap|config|database|resources|routes|storage|tests|vendor|node_modules|\.git)(?:/|$) - [F,L,NC]
RewriteRule ^(?:README|TEST_REPORT|RESEARCH|REQUIREMENTS|DEVELOPMENT_REPORT) - [F,L,NC]
RewriteCond %{REQUEST_URI} !/public/
RewriteRule ^(.*)$ public/$1 [L]
</IfModule>
