RewriteEngine On
RewriteRule  ^$  index.php  [L]
RewriteRule ^([a-zA-Z0-9_-]*)$  $1.php [L]
RewriteRule ^([a-zA-Z0-9_-]*)(\?.*)$  $1.php$2 [L]



