In my nginx config, I would like to catch /foo-bar/
and do a rewrite using location, but for it to ignore /foo-bar/anything-else
.
I've tried:
location = /foo-bar/ {
and
location ~ ^/foo-bar/$ {
and
location ~ /foo-bar/ {
but it also catches and rewrites
/foo-bar/?t=aaa-bbb-ccc
How do I catch only
/foo-bar/
and not
/foo-bar/?t=aaa-bbb-ccc
?
Thanks.