Cloudflare Pages, custom domain

Hi folks

Built a static page website with Publii, synchronised to a Github repo and pushed to Cloudflare Pages.

This is all good and working with the domain.

I have configured a subdomain for this site and it works well.However, the site is now available in both custom domain and domain.

To avoid duplication, is there a way to hide the site on if a custom domain is associated?

Sadly not yet. Best practice is to just have a canonical meta tag.

Thanks, will check the configuration to see if I can automatically generate a tag for each page.

Yep, there is. Done now - thanks.

1 Like

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