Options -Indexes
DirectoryIndex index.php
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteRule ^(?:app|config|database|storage|docs|tests|tools)(?:/|$) - [F,L,NC]
RewriteRule (^|/)\. - [F,L]
RewriteRule ^(?:bootstrap\.php|composer\.(?:json|lock)|VERSION|.*\.(?:sql|log|md|bak|pem))$ - [F,L,NC]
RewriteRule ^install/?$ index.php?page=install [QSA,L]
RewriteRule ^admin/?$ index.php?page=admin [QSA,L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^ index.php [QSA,L]
</IfModule>
<FilesMatch "^(bootstrap\.php|VERSION|.*\.(sql|log|md|bak|pem))$">
Require all denied
</FilesMatch>
