auto remove .php extension using .htaccess
#This code will automatically remove .php extention
#ex: it remmoves www.eample.com/xyz.php to www.example.com/xyz
RewriteEngine on
RewriteBase /
RewriteRule ^(.+)\.php$ /$1 [R,L]
RewriteCond %{REQUEST_FILENAME}.php -f
RewriteRule ^(.*?)/?$ /$1.php [NC,END]
#Copy and paste the above code in .htaccess file