<p>How to route multiple prefixes to the same route in istio ?</p>

<p>For example:
prefix: /api
prefix: /something_else</p>

<p>how to route both of the above prefixes to the same route in istio ?</p>

Pavan A
<p>From the Istio official <a href="https://istio.io/docs/reference/config/networking/v1alpha3/virtual-service/" rel="nofollow noreferrer">documentation</a>:</p>

<blockquote>
  <p>HTTP requests with path starting with /wpcatalog/ or
  /consumercatalog/ will be rewritten to /newcatalog and sent to pods
  with label “version: v2”.</p>
</blockquote>

<pre><code>apiVersion: networking.istio.io/v1alpha3
kind: VirtualService
metadata:
  name: reviews-route
spec:
  hosts:
  - reviews.prod.svc.cluster.local
  http:
  - match:
    - uri:
        prefix: "/wpcatalog"
    - uri:
        prefix: "/consumercatalog"
    rewrite:
      uri: "/newcatalog"
    route:
    - destination:
        host: reviews.prod.svc.cluster.local
        subset: v2
  - route:
    - destination:
        host: reviews.prod.svc.cluster.local
        subset: v1
</code></pre>
