What a canonical URL is
When the same page loads at several addresses, the canonical tag tells search engines which one to index and credit. Google treats it as a strong hint, not a rule. Most pages should name their own clean URL, which is called a self-referencing canonical.
Use an absolute URL that starts with https://. Google accepts relative paths, but recommends absolute ones because they leave no room for mistakes.
Which parameters to keep
Strip parameters that do not change the content: utm tags, click IDs like gclid and fbclid, session IDs and sort orders. Keep the ones that do, such as the page number of a paginated list. Each page in a series should name itself as canonical, not page 1.
Keep your signals consistent
Pick one form, with or without www and with or without a trailing slash, and use it everywhere: the canonical tag, internal links, the sitemap and your redirects. Redirect the other forms to it with a 301.
Questions
Should the canonical point to the page itself?
Yes, in most cases. A self-referencing canonical with the clean URL is the safe default. Only true duplicates point somewhere else.
Should I use the tag or the HTTP header?
The link tag for HTML pages, and the Link header for files with no head, such as PDFs. Do not send different values in both.
Does www or non-www matter for ranking?
No. What matters is that you pick one, use it in your canonicals and redirect the other to it.
Is a canonical tag the same as a redirect?
No. Visitors still see the duplicate URL. Use a 301 redirect when the old address should not be used at all.
Guides for this
- Canonical Checker Guide: What a Canonical Tag Does and How to Check YoursHow to use a canonical checker, and what it is checking for: what rel canonical means, HTML and HTTP header examples, when to use a canonical tag, the mistakes that drop pages from Google and how to read Search Console's canonical reports.
- 301 Redirect Generator Guide: 301 vs 302, and Redirect Code for Apache, Nginx, Next.js and CloudflareHow to use a 301 redirect generator, and when a 301 is the right redirect at all: 301 vs 302 vs 307 vs 308, copy and paste code for .htaccess, Nginx, Next.js and Cloudflare, and how to avoid chains and loops in a migration.
- Breakdown: Dofollow Backlink Benefits for New StartupsA practical breakdown of how dofollow backlinks for new startup launch pages can improve discoverability, authority signals, and qualified acquisition when combined with strong launch execution.