Score:0

apache: redirect only when url matches without query

cn flag

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.

E.g. on-the-yard/detail?param=1&param2=test is redirecting to /on-the-yard/

Any advice is helpful Thanks!

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.