Are you sure that Traefik is generating that redirect?
Golang camel-cases all headers, but none of those response headers are cased that way. There are also headers added that Traefik doesn't add for redirects....
And you say you have configured the redirect to be non-permanent...but a 301 is being returned.
Is it possible that your backend is returning the 301?
Traefik is behind a GCP load balancer, but hitting traefik directly yields the same problem. I did shut down the backend app to make sure it is out of the loop. So I don't think that is the problem.
The permanent is correct, I was flipping that setting to make sure the redirect was traefik. Here is what I am seeing:
Can you check if the redirect is properly being loaded by viewing the dashboard, or by enabling the api?
If so, can you share what is loaded? (feel free to sanitize any data. Just want to ensure that there are no issues with escaping, and that the redirect is being properly loaded).
I have exactly the same problem but with Traefik 1.7.16 and a docker-compose set-up. I use a PathPrefixStrip rule and want to perform a redirect from "/" to a html file in a subdirectory. But whatever I enter as replacement value Traefik sends a redirect to "/" resulting in a redirect loop.