I have this redirect
RewriteRule ^on-the-yard/detail/?$ /on-the-yard/ [R=302,NE,L]
and I would like to use it ONLY when the exact URL matches
^on-the-yard/detail/?$, but the problem I'm having is that the URL is also redirecting when there are queries attached.
on-the-yard/detail?param=1¶m2=test is redirecting to
Any advice is helpful Thanks!