Menu

Canonical Tags and Duplicate Pages, Explained With Examples
📰

Canonical Tags and Duplicate Pages, Explained With Examples

DEV Community: html·Aizium Systems·1 day ago
#Mt3oAoBI
#devto2#devto#dev#canonical#example
Long article (661 words) — no AI summary yet.
Reading 0:00
15s threshold

Duplicate pages are rarely deliberate. A site ends up with the same content at several addresses because of tracking parameters, www and non-www versions, print views or product filters. Canonical tags are how you tell search engines which version you consider the main one. Here is how they work, with examples you will recognise.

What is a canonical tag?

It is a single line in the <head> of a page:

<link rel = "canonical" href = "https://www.example.com/services/web-design/" >

Enter fullscreen mode

Exit fullscreen mode

It says: "If you find this content at several URLs, this is the one I prefer to show in search." Search engines then tend to consolidate signals, such as links, onto that preferred URL.

One important detail: Google treats the canonical tag as a strong hint, not a command. If other signals disagree (redirects, internal links, sitemap entries), Google may choose a different canonical.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.