Hiding web files extention is impoertant to make your website Search Engine Friendly. In this article I will share how to do that with configure httaccess file. Please follow below step.
To hiding PHP extention you can configure your .htaccess file like :
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^([^\.]+)$ $1.php [NC,L]
To hiding HTML extention you can configure your .htaccess file like :
RewriteRule ^([^\.]+)$ $1.html [NC,L]
Thank you