trying to redirect a url with ending parameter to same url without that parameter on the same domain
www.mydomain.com/efg/abc?id=303
to
www.mydomain.com/efg/abc
found this answer on the matter and try to use it but it doesn't work for me:
RewriteCond %{HTTP_HOST} ^mydomain\.com$ [NC]
RewriteCond %{REQUEST_URI} /efg/abc
RewriteRule ^efg/abc? [L,R=302]
would appreciate any help.thanks