RewriteEngine On

# Permite acessar arquivos PHP sem extensão
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME}.php -f
RewriteRule ^(.*)$ $1.php [L]

# Compatibilidade Apache/cPanel
AddType application/x-httpd-php .php .html .htm

# Protege o banco
<Files ".db.db">
    Require all denied
</Files>
