I want to route trafic outside of Turkey to another domain, I write acl into haproxy so in Turkey it works as planned but outside of Turkey traffic redirects but shows too many redirects. What I am missing in this configuration. My traffic comes from Cloudflare
acl acl_tr req.hdr(CF-IPCountry) eq "TR"
acl test_hname hdr(host) -m end lbtest.test.com
acl test_de hdr(host) -m end lbde.test.com
use_backend test_backends if acl_tr test_hname
redirect code 302 prefix https://lbde.test.com unless acl_tr
use_backend test_backends if test_de