I'm also successful with following but goes to home page, can't preserve the actual link RewriteCond %{THE_REQUEST} \?[^\ ]+ RewriteRule (.*) /$1? [R=302,L]
RewriteCond %{QUERY_STRING} !=""RewriteRule ^ %{REQUEST_URI}? [R=302,L]