Options -Indexes
DirectoryIndex index.php

<IfModule mod_rewrite.c>
RewriteEngine On
# Protect internal source/config/database folders on root or subfolder installs.
RewriteRule ^(app|config|database|storage)(/|$) - [F,L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^$ index.php [L]
</IfModule>

<FilesMatch "\.(env|log|sql)$">
  Require all denied
</FilesMatch>
