What Is a Canonical URL?
A canonical URL is the URL for the “main” version of a duplicated page, as determined by search engines like Google.
For example:
Canonical URL: https://example.com/blog/
Alternate URL: https://example.com/blog/?page=1
What Is a Canonical Tag?
Canonical tags, also known as canonical links or rel="canonical" tags, allow you to influence canonicalization.
<link rel="canonical" href="https://example.com/preferred-url-here/" />
How to Implement Canonical Tags
To implement canonical tags in your HTML, you can add the rel="canonical" tag to the <head> section of the page.
Other Ways to Specify Canonical URLs
1-Use rel=“canonical” in HTTP Headers
Use rel=“canonical” in HTTP Headers
A rel=“canonical” HTTP header allows you to specify a canonical URL for non-HTML documents.
2-Redirect Duplicate Pages to Canonical Pages
URL redirects send Google (and users) from one page to another.
3-List Canonical URLs Only in Your Sitemap
“All pages listed in a sitemap are suggested as canonicals,” according to Google.
Comments
Post a Comment