<FilesMatch "\.(ini|sql|log|db)$">
    Order Deny,Allow
    Deny from all
</FilesMatch>
Options -Indexes
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://%{HTTP_HOST}/$1 [R=301,L]