DirectoryIndex index.php

<IfModule mod_rewrite.c>
  RewriteEngine On
  # Anything that is not a real file is served by the front controller.
  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteCond %{REQUEST_FILENAME} !-d
  RewriteRule ^ index.php [L]
</IfModule>

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

Options -Indexes
