Hello!
I am trying to redirect (http:// and https://)domain.com and also (http:// and https://)www.domain.com to google.com.
I thougt I figured it out by doing the following:
[http.middlewares]
[http.middlewares.redirect.redirectRegex]
regex = "(.*)domain.com(.*)"
replacement = "google.com${2}"
permanent = true
But instead of redirecting me to google.com Traefik redirects me to domain.com/google.com/google.com/google.com .... and so on
I tested my config with regex101 and it looked fine there but obviously its not working with Traefik.
Does anyone have a bit more experience with Regex?
Thanks in Advance!