Add ReWrite from Old Pages to WordPress (remove .php)

It should work with this lines which simply remove the .php from files that end with .php:

RewriteCond %{REQUEST_FILENAME}.php -f
RewriteRule !.*\.php$ %{REQUEST_FILENAME}.php [QSA,L]