To set up canonical tags for republished articles and ensure Google uses the correct domain as the canonical source in a Webflow project with multiple custom domains, follow these steps:
www.example.com
).Important: Make sure you set the www. version as default if you're using both www
and root (example.com
) to avoid duplicate content issues.
When republishing articles from another site (like Medium or other blogs), you need to manually assign canonical URLs:
In the CMS Collection Template Page (e.g., Blog Post), add a custom code block in the Page Settings.
Scroll to "Custom Code > Inside tag" and insert the following:
<link rel="canonical" href="https://original-source.com/original-article" />
Replace the URL with the original article’s canonical URL.
You can make this dynamic by creating a "Canonical URL" field in your Collection and then referencing it like:
<link rel="canonical" href="{{Canonical URL}}" />
Make sure the field only populates for republished content. Leave it blank for original articles to allow Webflow's built-in canonical system to apply.
www.example.com
). Avoid actively using or linking to the non-default domains like example.com
or other TLD variations.www.example.com/sitemap.xml
.Set a default domain in Webflow for automatic canonical tags and use custom canonical tags for republished articles via a CMS field. This setup ensures Google indexes the correct version of your content and avoids duplication from custom domain variations.