RewriteEngine On

RewriteRule ^$ index.php [QSA]
RewriteRule ^([^.]+)$ $1.php [QSA]
