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

RewriteRule ^(.*)\.php$  $1.php [NC,L]