If you want to remove remove .php extension from url then first open .htaccess and past this code below.
Remove PHP Extension from URL
Copy and paste code:
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME}.php -f
RewriteRule ^(.*)$ $1.php
RewriteCond %{THE_REQUEST} "^[^ ]* .*?\.php[? ].*$"
RewriteRule .* - [L,R=404]
For more information about how to remove php extension from url using .htaccess contact Websolindia Indian web development company.