title: Ingress rewrite string is being ignored
body: <p>The requirement is to access the burger service in <a href="https://meals.food.com/burger2" rel="nofollow noreferrer">https://meals.food.com/burger2</a>.
  The context path within the app is <code>/burger</code>.</p>
  <p><strong>Ingress</strong></p>
  <pre><code>apiVersion: networking.k8s.io/v1
  kind: Ingress
  metadata:
    annotations:
      nginx.ingress.kubernetes.io/rewrite-target: /burger/$2
  spec:
    rules:
    - host: meals.food.com
      http:
        paths:
        - backend:
            service:
              name: burger
              port:
                number: 80
          path: /burger2(/|$)(.*)
          pathType: Prefix
  </code></pre>
  <p>Upon checking the ingress controller logs:</p>
  <blockquote>
  <p>[05/Jan/2022:13:54:11 +0000] &quot;GET // HTTP/1.1&quot; 304 0 &quot;-&quot; &quot;Mozilla/5.0
  (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko)
  Chrome/96.0.4664.110 Safari/537.36&quot; 957 0.002 [anotherservice-80] []
  x.x.x.x:80 0 0.002 304 230200x023</p>
  </blockquote>
  <p><strong>Is my ingress config correct?</strong>
  My suspicion is that something is altering the request between my request from the browser to ingress-controller.</p>