I’m encountering an incredibly bizarre issue. There’s two domains in one of my accounts, $merit and $sharp. I encountered an issue yesterday where, when Cloudflare is enabled on $merit, it causes www$merit to return a 404 page. However, it’s a completely different 404 page from my origin server, and based on the fact that my Apache htaccess redirects aren’t being triggered and there’s nothing showing up in my server logs, it’s not being generated from my server.
So I’ve been looking through both sites trying to figure out if there’s any setting that would have caused that, and I remembered that $sharp is supposed to be set up to redirect all requests to both $sharp and www$sharp to a landing page at $merit slash sharpadvisors. I look through $sharp’s DNS records and notice that the www subdomain is CNAMEd to $fmg; and opening that in a new tab shows the same 404 page I was getting when merit was proxied. Additionally, only the root domain was properly being redirected, www$sharp was (and still is) showing that 404 page as well.
Okay, it must be a redirect configuration issue then. I cleared out the Bulk Redirects configuration, assuming it might be an issue with that since it’s in beta, and rebuilt the redirects in Page Rules. Same behavior. I delete the Page Rules and let it resolve straight to the existing IPs. Same behavior. I deleted all of the DNS records for the root domain and the www subdomain and, following the instructions normally used for Worker deployment, I added AAAA records pointing to an unrouted IPv6 address as a replacement (at this point $fmg is no longer referenced anywhere in my DNS). Same behavior.
The only configuration which doesn’t show that 404 page is when there’s no orange-clouded DNS records pointing to www$sharp. Having anything set to proxy on the www subdomain causes that 404 page to be served instead. I have no idea why this is happening, and even less idea as to why the issue would be affecting www$merit as well, which has never had any references to $fmg associated with it. I’ve checked Bulk Redirects, I’ve checked Page Rules and Transform Rules, and I’ve even checked Apps (there’s no Apps enabled on either domain). There’s nothing that would cause this to occur.
The only clue I can find is that if you pull the DNS for $fmg, it’s set up to CNAME to a Cloudflare CNAME, which indicates that domain seems to be running on Cloudflare as well in a CNAME configuration. I have no idea how that would affect my two domains, but it seems like it might be pertinent information.
What could possibly be causing this issue to occur? And why is it affecting both of the domains on that account?