1. Spotting Twins:
Imagine you wrote the same thing in two different notebooks. You’d want to remember which one is the main one, right? Similarly, first, find pages on your website that say the same thing.
Let’s say you have two URLs:
Both have the same content. In this case, “page-2” is the twin of “page-1”.
2. Putting Up the Signpost:
On the ‘twin’ page, you add a little note in the computer language. This note points to the main page. It’s like saying, “The main stuff is over there!”
If “page-1” is your main page and “page-2” is its twin, you’d add this tag on “page-2”:
<link rel="canonical" href="https://example.com/page-1" />
This tells search engines that “page-1” is the main page.
3. A Little Reminder:
It’s also good to put a note on the main page, reminding that it’s the main one. Just in case someone else uses your stuff.
If you have two similar pages, and you want to tell search engines which one is the main one, you’d use the canonical tag like this:
<link rel="canonical" href="https://example.com/main-page" />