For reasons which Worldpay cannot answer, they cannot accept a redirect to a flexible ssl endpoint because of SNI. But they CAN accept a call-back to a non-ssl page. I know - insane!
So I thought the solution would be simple - for all the rest of the site, ssl, rewrite, redirects etc are on.
When it happens the too many redirects error is usually due to the fact that either the origin or Cloudflare redirect to the opposite version continuously.
Have you disabled Always Use HTTPS on that path? Are you sure your origin isn’t forcing HTTPS or rejecting HTTP?
Thank you - certainly, here are those headers. It looks like the main setting of “http everything” and “no ssl” on page rules are just bouncing back and forth between each other. If only there WAS a setting for “Always Use HTTPS turned to off on that page rule” then it would instantly solve the problem, I think!
I believe the main “Always Use HTTPS” kicks in before Page Rules. So you’d have to turn that feature off for your domain, then enable it elsewhere.
Because it’s just that one directory that needs it, Page Rules isn’t a viable solution, as Page Rules don’t have an Exclude pattern.
You’d have to enable HTTPS redirect at the server level so you can redirect all except that one directory, or possibly by using Cloudflare Workers.
EDIT: If you’re using Flexible SSL, then only the Workers approach would work, as you can’t do HTTPS redirects at the server level (it will screw up the Flexible SSL connection)
Seeing the headers there are no reasons to actually check the website itself.
Unfortunately without the ability to disable that rule on the path there isn’t a lot that can be done except probably writing your own redirect on Workers ignoring that path. Obviously it would incur a cost, but it’s pretty limited (depending on the actual traffic obviously).
Is there no way to solve the issue. Not completely sure if buying a dedicated certificate would remove the SNI issue.