1
2
3
4
5
6
7
8
# Sample 1: 
RewriteRule ^about$ about.php [L]
 
# Sample 2: 
RewriteCond /%{REQUEST_FILENAME}.php -f
RewriteRule ^([a-zA-Z0-9_-\s]+)/$ /$1.php

source: http://apphp.com/index.php?snippet=htaccess-remove-file-extension-from-url