I would like to redirect users to a url without a specific variable. For example
mysite.com/?hop=hahaha
I would like to remove the hop variable and redirect to
mysite.com/
This for subdirectories as well for example
mysite.com/subdir/?hop=hahaha or mysite.com/subdir?hop=hahaha
becomes mysite.com/subdir
I have this so far but it only works for root domains, not subdirs
RewriteCond %{QUERY_STRING} ^hop=
RewriteRule .* /? [R,L]
(For reference clickbank adds the hop variables to landing pages)