Host matching rule infringement

Hello;
My virtual service is like that:

apiVersion: networking.istio.io/v1alpha3
kind: VirtualService
metadata:
  name: app1
  namespace: monitoring
spec:
  hosts:
  - int.mycompany.io
  gateways:
  - app1-gateway
  http:
  - match:
    - uri:
        prefix: /app1
    route:
    - destination:
        host: app1.appns.svc.cluster.local
        port:
          number: 80

There is a redirection defined in the main page “mycomapny.com/app1/index.html” and forwards requests to “mycomapny.com/login”.

IT causes to 404 error because “mycomapny.com/login” doesn’t match with match uri rule.

Could you please advise how I must configure virtualservice for that?