Hey guys,

I am getting multiple index pages for get variable redirects in my site.

Example:

domain.com/?id=2
domain.com/?id=3

I am trying to 301 redirect these just to my index.php page with the following with no luck:

RewriteCond %{QUERY_STRING} .
RewriteRule ^(index\.php)?$ /index.php? [R=301,L]


Any ideas as to what I am doing wrong?

Thanks,

JK