I’m having an issue with one of my custom domain sites, built with hugo (not that I think that’s particularly relevant to this issue). The apex domain apparently isn’t redirecting.
Hi Kim Sorry you hit this error case! I’ve just done some backend magic, and your site is working on both domains now.
Cloudflare recently added some stricter checks to the way they enforce wildcard behavior without letting us know, which caused this problem for some older domains. Specifically, it can affect sites using CloudCannon hosting on a subdomain where there is no Site attached to the root domain.
We’ve since updated the way we set up new domains to avoid this, but it seems that some older domains (I believe from before June 2025) occasionally need a manual push from our end, which we’ve been tackling on a case-by-case basis.
@kimslawson this is actually a slightly different case. For domains using External DNS, we issue non-wildcard SSL certificates for each subdomain attached to a site on CloudCannon, but unfortunately we can’t supply wildcard, which is why you’re seeing this error on the “www” subdomain.
A simple approach to fix this is to create a “redirect site”. In a lot of cases, you only want one extra subdomain, like www, to be covered. In this case, you can just add another site on CloudCannon to get the non-wildcard SSL certificate for that subdomain, and then use our custom routing feature to redirect all traffic back to the main domain. This means the second site never needs to be rebuilt or maintained.
We actually have a public repo with the basic boilerplate for this kind of “redirect site” here if you’re interested to use this approach: GitHub - CloudCannon/redirect-boilerplate: Static boilerplate website for performing redirects. You just need to update routing.json to point to your own domain, and the attach your desired subdomain to the Site in the Custom Domain part of your Site Settings.