After seeing this link
I tried to use the same to redirect my page as below.
apiVersion: consul.hashicorp.com/v1alpha1 kind: ServiceRouter metadata: name: frontend-ingress spec: routes: - match: http: pathPrefix: '/frontpage' destination: service: frontend - match: http: pathPrefix: '/' destination: prefixRewrite: '/frontpage' # NOTE: a default catch-all will send unmatched traffic to "web"
But, it is not working.
If the user types,
http://<mainurl> it should redirect to
Please suggest how to setup this.