When I turn proxy on my sub-domain site, it causes too many re-directs

Why Wait
Don’t wait for an answer, find it fast! Search for #CommunityTip error:
Example: #CommunityTip 521
Whenever I turn on proxy on these particular sub domain, it causes the site to have too many re-directs and not work. I have full secure turned on and at a loss of what to do

What is the domain and subdomain?

The domain is ymca-fg.org
Sub-domain shop.ymca-fg.org

Your origin server redirects http://shop.ymca-fg.org to https://shop.ymca-fg.org

curl -I http://shop.ymca-fg.org/
HTTP/1.1 301 Moved Permanently
Content-Length: 148
Content-Type: text/html; charset=UTF-8
Location: https://shop.ymca-fg.org/
Server: Microsoft-IIS/10.0
X-Powered-By: ASP.NET
X-Powered-By-Plesk: PleskWin
Date: Thu, 04 Apr 2024 12:56:58 GMT

…and on Cloudflare you have a redirect from https://shop.ymca-fg.org back to http://shop.ymca-fg.org

curl -I https://ymca-fg.org/ -H "Host: shop.ymca-fg.org"
HTTP/2 301
date: Thu, 04 Apr 2024 12:59:01 GMT
location: http://shop.ymca-fg.org/
cache-control: max-age=3600
expires: Thu, 04 Apr 2024 13:59:01 GMT
report-to: {"endpoints":[{"url":"https:\/\/a.nel.cloudflare.com\/report\/v4?s=AhB8KHUW1sZ2Nst9vBa60u6juzbWvI9NgYMhdtgoWMj2jFU%2BD9hrWisWH6J8XsNSznls3blHTXXjn53%2FS42C3JeJrZ8MnL4P6%2Bs1W7qLp2HfLlI8Q98We1iVm9wF9XtIgdNfUIGchuRHGjSKODJ9"}],"group":"cf-nel","max_age":604800}
nel: {"success_fraction":0,"report_to":"cf-nel","max_age":604800}
server: cloudflare
cf-ray: 86f179282af8636b-LHR

You need to remove one of those redirects to prevent them going round in circles.

Make sure your SSL/TLS setting is set to “Full (strict)” here…
https://dash.cloudflare.com/?to=/:account/:zone/ssl-tls

1 Like

Thank you, I have full (strict) on, I cant see where to remove the redirect from https://shop.ymca-fg.org to http://shop.ymca-fg.org .

Are you able to point me in the right direction?

Check for redirects in your dashboard here…
https://dash.cloudflare.com/?to=/:account/:zone/rules/redirect-rules (scroll down the page to also check under bulk redirects)
https://dash.cloudflare.com/?to=/:account/:zone/rules/rules

1 Like

Thank you, There is nothing there…

Did you check under both page rules and redirect rules? Did you scroll down and check the bulk redirects?

Failing that, try the trace tool and it will show where in the Cloudflare pipeline any changes are made…
https://dash.cloudflare.com/?to=/:account/trace

1 Like

Yes, I have checked both but still nothing, The trace tool hasnt shown any changes

Set your SSL to Full Strict

1 Like

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.