Trim .php extension using .htaccess
Trim your .php extension in your web application using .htaccess RewriteEngine on RewriteRule ^$ index.php RewriteRule ^([a-zA-Z0-9\-\_/]*)/$ $1/index.php RewriteRule ^([a-zA-Z0-9\-\_/]*)$ $1.php
Discover the new direction...
Trim your .php extension in your web application using .htaccess RewriteEngine on RewriteRule ^$ index.php RewriteRule ^([a-zA-Z0-9\-\_/]*)/$ $1/index.php RewriteRule ^([a-zA-Z0-9\-\_/]*)$ $1.php