Streaming live at 10am (PST)

Canonical Tags for Blog

Hi All,

Can anyone with experience in canonical tags shed some light on this scenario as I can’t find an exact example online or the forum:

My blog is setup on the Blog Categories Template CMS page. The full unfiltered blog is https://brahmanhills.webflow.io/blog/all-categories. Other blog categories sit on https://brahmanhills.webflow.io/blog/weddings etc.

Should the canonical tag be:

<link rel="canonical" href="https://www.brahmanhills.co.za/blog/SLUG" />

or should it be:

<link rel="canonical" href="https://www.brahmanhills.co.za/blog/all-categories" />

Share: https://preview.webflow.com/preview/brahmanhills?utm_source=brahmanhills&preview=132715ef5186f6f466b1aef2ec4b15c7

Live: https://brahmanhills.webflow.io/blog/all-categories

Category

Like this (The slug is webflow build-in field):

image

Put this code under “category” cms page (Inside <head> tag).

Post

<link rel="canonical" href="https://www.brahmanhills.co.za/blog-post/{{slug}}" />

General case

In general this is the “structure”:

<link rel="canonical" href="{{base-url}}/{{collection-url}}/{{slug}}" />

image

image

** In the future if you change collection-url -and/or- base-url - remember also to change manually the canonical.

Thanks @Siton_Systems, this is what I’ve done. I just wanted confirmation that the canonical tag for the “category” cms page should include the SLUG and not just be a straight URL for the all categories. Appreciate your time!

1 Like