A <link />
tag with rel="canonical"
is used to specify a "canonical page" (which you can think of as the master copy of a page). This is useful when you have multiple URLs with similar or duplicate content. In such cases, it can help search engines link and index the correct page, and may also help prevent your search engine rankings to be negatively impacted for posting the same content multiple times.
To indicate that a particular page is the "canonical page", you can add <link rel="canonical" href="..." />
to the <head></head>
section of all duplicate pages, for example, like so:
<link rel="canonical" href="https://example.com/original-post" />
This post was published by Daniyal Hamid. Daniyal currently works as the Head of Engineering in Germany and has 20+ years of experience in software engineering, design and marketing. Please show your love and support by sharing this post.