Redirect domain via regex does not work

Heho
Iˋm trying to redirect a domain to another but it doesnt work. I do not understand why :slight_smile:
Can you help me please?

I‘m using docker-compose with labels


labels:
      traefik.enable: "true"
      traefik.docker.network: "weave"
      traefik.http.routers.link.entrypoints: "https"
      traefik.http.routers.link.rule: "HostRegexp(`link.domain.cloud`,`do.gs`,`{subhost:[a-zA-Z0-9-]+}.do.gs`)"
      traefik.http.routers.link.tls: "true"
      traefik.http.routers.link.tls.certresolver: "letsencrypt"
      traefik.http.routers.link.middlewares: "dogs@docker"
      traefik.http.middlewares.dogs.replacepathregex.regex: "^https?://do.gs(.*)"
      traefik.http.middlewares.dogs.replacepathregex.replacement: "https://dogs.ch$$1"
      traefik.http.services.link.loadbalancer.server.port: "80"

There are no errors in log or Dashboard . The connection between router and middleware is visible in the dashboard

Me stupid

I used replacepathregex instead of redirectregex.

(Insert facepalm here)

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.