What is "URL canonicalization"?
URL canonicalization is the process of choosing the primary (canonical) version of a page when the same content is available at several different addresses. The goal is to show search engines which URL to treat as the main one, so duplicates don't appear and the page's link equity doesn't get diluted.
Why this is needed at all
The same content can be accessible at different addresses, for example:
javascript
example.com/page
example.com/page?utm=123
example.com/page/
www.example.com/pageTo a search engine, these are different URLs, which means duplicates. As a result:
- search ranking gets worse;
- link equity gets "spread thin";
- there can be uniqueness issues.
The solution is to specify the canonical address using a tag:
html
<link rel="canonical" href="https://example.com/page">Then the search engine understands: the main version is the one in canonical, and the rest should be treated as secondary.
Short Answer
Interview readyPremium
A concise answer to help you respond confidently on this topic during an interview.