RewriteEngine On RewriteBase / # If the request is not for a valid file RewriteCond %{REQUEST_FILENAME} !-f # If the request is not for a valid link RewriteCond %{REQUEST_FILENAME} !-l RewriteRule ^([^?]+)(\?(.*))?$ index.php?go=$1&$3 [L,QSA]