views:

13

answers:

0

How to add a new rule on Wordpress default .htaccess to eliminate all the _GET parameter?

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>

The example is like if I have URL of

http://www.mysite.com?m=1&amp;c=321&amp;p=123

I want to get rid of the ?m=1&c=321&p=123 and rewrite it as http://www.mysite.com only.

Thanks