# rename the file to .htaccess RewriteEngine On RewriteBase /cms/ RewriteCond %{REQUEST_FILENAME} !-d [NC] RewriteCond %{REQUEST_FILENAME} !-f [NC] RewriteRule ^(.*)$ index.php?pid=$1 [QSA,L]
info at phpclasses dot org