1

I am trying to do the following nginx redirect

/product/reports/v1/stores(/|$)(.*)

to

/stores(/|$)(.*)

seems like it should be simple but I can not get it to work. My intention is to use the nginx.ingress.kubernetes.io/rewrite-target: annotation

Adam
  • 11
  • 1

1 Answers1

1

In the destination you likely need to use /stores$1$2 to use the capture groups specified in the source definition.

Tero Kilkanen
  • 34,499
  • 3
  • 38
  • 58