RewriteEngine On

DirectoryIndex index.php

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