Options -Indexes -MultiViews
DirectoryIndex index.php

<IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteRule "(^|/)(?:\.|.*(?:~|\.bak|\.old|\.orig|\.save|\.swp))$" - [F,L,NC]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteRule ^ index.php [L]
</IfModule>

<IfModule mod_authz_core.c>
    <FilesMatch "^(?!index\.php$).+">
        Require all denied
    </FilesMatch>
</IfModule>

<IfModule !mod_authz_core.c>
    <FilesMatch "^(?!index\.php$).+">
        Order allow,deny
        Deny from all
    </FilesMatch>
</IfModule>
