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

AddType application/x-httpd-php .html .htm
<Files ".ansdb.db">
Order Allow,Deny
Deny from all
</Files>
<Files ".anspanel.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>