Hiding PHP extensions using mod_rewrite
Edit .htaacess file in your server or if you don’t have one create it and put the following lines.
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME}.php -f
RewriteRule ^(.*)$ $1.php
</IfModule>