I use the rewrite function of traefik to redirect url path to / . The traefik config :
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
annotations:
app.protocol: http
customer/ingress-domain: http://example.com
customer/rewrite-path: /
traefik.ingress.kubernetes.io/rule-type: PathPrefixStrip
spec:
rules:
- host: example.com
http:
paths:
- backend:
serviceName: test-web
servicePort: 8080
path: /tech/TQATaskFrontend
status:
loadBalancer: {}
and I excute curl http://example/tech/TQATaskFrontend
, It returens:
{"timestamp":"2022-02-23 11:22:57","status":404,"error":"Not Found","message":"No message available","path":"/tech/TQA/TaskFrontend/"}
the path TQATaskFrontend is auto added a "/" between "A" and "T"
What is the reason for this?