I need to get rid of index.html at the end of url, so
https://somehost/somepath/index.html
is rewritten to
https://somehost/somepath
I tried
- match:
- uri:
regex: (.*)\/index.html
route:
- destination:
host: allure-service-clusterip.allure-docker-service.svc.cluster.local
port:
number: 7070
rewrite:
uriRegexRewrite:
match: (.*)\/index.html
rewrite: /\1
and
- match:
- uri:
prefix: /index.html
route:
- destination:
host: allure-service-clusterip.allure-docker-service.svc.cluster.local
port:
number: 7070
rewrite:
uri: /
but it does not work.
Originally it was implemented with nginx ingress as following:
https://github.com/fescobar/allure-docker-service-examples/blob/master/allure-docker-kubernetes-example/allure-ingress-service-load-balancer.yml
Any ideas?