RewriteEngine On # NOTE: change this to your actual site path; may be "/". RewriteBase /path/ RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule (.*) index.php?p=$1 [L,QSA]