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