I have this code in HTACCESS file and it works fine as it remove .php file extension.It also allows page to load without extension.
# For security reasons, Optio
Insert this rule just below RewriteBase line to avoid redirecting POST requests:
RewriteBase
RewriteCond %{REQUEST_METHOD} POST RewriteRule ^ - [L]