Options -Indexes
DirectoryIndex index.php
<IfModule mod_rewrite.c>
RewriteEngine On
# Nunca exponha arquivos privados mesmo quando o projeto estiver em public_html.
RewriteRule ^(app|config|database|resources|routes|scripts|tests|vendor|storage)(/|$) - [F,L,NC]
RewriteRule (^|/)\.(env|git|svn|ht|DS_Store) - [F,L,NC]
RewriteCond %{REQUEST_URI} !^/public/
RewriteCond %{DOCUMENT_ROOT}/public%{REQUEST_URI} -f [OR]
RewriteCond %{DOCUMENT_ROOT}/public%{REQUEST_URI} -d
RewriteRule ^(.*)$ public/$1 [L]
RewriteRule ^$ public/index.php [L]
RewriteRule ^ public/index.php [L]
</IfModule>
