Canonical Tag
How rel=canonical suggests a preferred URL and when a permanent redirect is the better choice.
Status: Active · Role: Dev
A canonical tag suggests the preferred URL when duplicate or very similar pages are available at multiple addresses. It is a hint, not a command: Google may choose a different canonical based on other signals.
What does it look like?
Put an absolute URL in the HTML head of the duplicate page:
<link rel="canonical" href="https://example.com/products/widget" />Canonical or 301 redirect?
Use a canonical when both URLs must remain accessible, such as a filtered URL and its main product page, and the content is genuinely duplicate or substantially similar. Use a 301 redirect when the old URL should permanently move and visitors should land at the new one. Point internal links and sitemaps to your preferred URL. A canonical is not a substitute for noindex, access control or a redirect when those are the actual goal.
Frequently asked questions
Can I canonicalize two different pages to combine their rankings?
Not reliably. The target should represent duplicate or substantially similar content; Google may ignore conflicting hints. See Google's canonicalization guide.