Cloudflare is redirecting traffic from my naked domain to a subdomain

What is the name of the domain?

lucasmacedo.com

What is the issue you’re encountering

When accessing my domain I’m being redirected to one of my subdomains when using Cloudflare

What steps have you taken to resolve the issue?

I’ve confirmed that removing Cloudflare out of the equation fixes the problem. When I do my own DNS and point it directly to my reverse proxy locally, I don’t have this issue. As a matter of fact, this subdomain is not even setup in my reverse proxy.

I don’t have any redirect rules setup in Cloudflare.

What are the steps to reproduce the issue?

This only happens when I either open my naked domain or its www.

The redirect isn’t coming from a regular rule as it doesn’t contain the usual Cloudflare redirect body…
https://cf.sjr.dev/tools/check?276b5f3fabb7447eb6d03215e3da4d56#connection-server-https

Use the trace tool to find out if and where it is configured in the Cloudflare pipeline…
https://dash.cloudflare.com/?to=/:account/trace

I don’t think there are any redirects setup?

Check the 2 Page Rules.

Yes. That was it.

I was looking just at the Overview portion of the rules and didn’t click on Page rules.

Yeah, there were 2 nasty rules creating the redirect there.

Thanks for the help!

1 Like

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