We are running a phpBB forum and we want to redirect certain countries to a particular post on our site. We created a Worker redirect for this, but when we tested it using a VPN and accessing our site from that particular country the Worker redirect doesn’t work. It starts to access the link after detecting the country, but then the browser times out and says too many redirects. As far as we know though there aren’t any added redirects involved with the redirect link we put into the Worker. It’s a direct link to the post that we put into the Worker for access by that country. We also tested the link directly outside of the Worker redirect and the link itself works normally. No errors. So it seems there is no issue with the link itself.
If we created a bitly or some other type of link and put that into the Worker instead would that work perhaps?
Thank you. I read some stuff about “too many redirects” issues (you can click on the link above in my original post) and it seems Cloudflare already forces https so it’s not necessary to have that configured in the origin server.
And I think it might be our rewrite rule in the .htaccess file on our server that could be causing this endless loop of redirects.