Using a canonical tag
Reviewedbyfl
Markdown ↓⚔️
There can only be one.
A canonical tag tells search engines which version of a page is the preferred one when you have multiple domains or URLs serving the same content. Use the rel="canonical" link element in your HTML head to consolidate indexing signals.
Handling duplicate content with canonical tags
A canonical tag is a link element in your HTML that specifies the preferred URL when you have multiple domains or pages with identical content. Search engines use this signal to consolidate duplicate content and avoid diluting your SEO ranking across multiple versions.
Suppose you have fortrabbit.com and fort-rabbit.com registered, and both display the same content. You want to keep both URLs active but tell search engines that fortrabbit.com is the authoritative version. Instead of creating a redirect (which might break existing links), you can add a canonical tag to the head of every HTML page:
<head>
…
<link
rel="canonical"
href="https://www.fortrabbit.com"
/>
</head>
This approach is gentler than redirects when you need multiple domains serving the same environment. For more technical details, see Google's guide to canonical URLs.