 <p>This should work for you. Add this in your .htaccess file.</p> <pre><code>RewriteEngine on RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^([^/]+) /?action=$1&amp;%{QUERY_STRING} [L] </code></pre>