How to remove the .php extension from the URLS ?

If you want to  remove the  .php  extension from  URL’s then just add the below code in the .htaccess file :

======================
Options +FollowSymLinks
Options +Indexes
RewriteEngine on
RewriteCond %{SCRIPT_FILENAME} !-d
RewriteRule ^([^\.]+)$ $index.php [NC,L]

======================

That’s all this will do it.