Nginx.org/rewrites alternatives for traefik

Hey,

I'm trying to mimic the behaviour of nginx.org/rewrites in Traefik.

I want to rewrite the URI of a request before sending it to the application, e.g.

nginx.org/rewrites: "serviceName=tea-svc rewrite=/"

  • /tea/ -> /
  • /tea/abc -> /abc

What options do I have?

Look at stripprefix and similar http middlewares.