Options -Indexes -MultiViews
DirectoryIndex index.php
RewriteEngine On
RewriteRule ^(?:app|views|database)(?:/|$) - [F,L]
RewriteCond %{THE_REQUEST} \s/+(.*/)?index\.php[?\s] [NC]
RewriteRule ^index\.php$ ./ [R=301,L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^ index.php [L,QSA]
