here we go
Demo:
Before
www.yoursite.com/index.php
after
www.yoursite.com/index
Open your htaccess files add below code for php
Options +FollowSymLinks Options +Indexes RewriteEngine on RewriteCond %{SCRIPT_FILENAME} !-d RewriteRule ^([^\.]+)$ $1.php [NC,L]
for html
just add like this
RewriteRule ^([^\.]+)$ $1.html [NC,L]
I hope who had request of it, now solved problem.
thanks