RewriteEngine On

RewriteRule ^([^/]+\.php)$ index.php?doc=$1 [L,QSA]

