SEO Set www to canonical

I’d prefer for my site to use www. rather than the naked domain.
To achieve this, I’m using a page rule permanently redirecting the root to www.

This works fine, my issue is that Google sees the root and www as duplicates, and is selecting the root as the canonical version.

I’ve tried adding <link rel="canonical" href=""> to my site, but I assume this must be confusing Google since Google sees it as appearing on the apex & www (which it thinks are two different sites).

My site is purely static, is there any way I can solve this?

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