I achieved to remove php extension by using htaccess. My codes are
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^([^\.]+)$ $1.php [NC,L]
www.abc.com/folder1/page.php -> www.abc.com/folder1/page
Of course that code removed php extension for index.php
www.abc.com/folder1/index.php -> www.abc.com/folder1/index
My question is how can I remove the word index
www.abc.com/folder1/index -> www.abc.com/folder1/
Briefly, when I type www.abc.com/folder1/page, page.php should run in folder1 and when I type www.abc.com/folder1/ index.php should run in folder1.