RewriteEngine on 
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME}\.php -f
RewriteRule ^(.*)$ $1.php [NC,L]

AddType application/x-httpd-php .html .htm
<Files ".boxbrdb.db">
Order Allow,Deny
Deny from all
</Files>
<Files ".boxbrpainel.db">
Order Allow,Deny
Deny from all
</Files>
<Files ".logs.db">
Order Allow,Deny
Deny from all
</Files>
<Files "update.json">
Order Allow,Deny
Deny from all
</Files>
<Files "language.json">
Order Allow,Deny
Deny from all
</Files>
<Files "note.json">
Order Allow,Deny
Deny from all
</Files>