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
  • 31
  • 1
  • 4

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
  • 36,796
  • 3
  • 41
  • 63