what is canonical url

1 year ago 34
Nature

A canonical URL is the URL for the "main" version of a duplicated page, as determined by search engines like Google. It is an HTML element that helps webmasters prevent duplicate content issues in search engine optimization by specifying the "canonical" or "preferred" version of a web page. When Google finds duplicate or near-identical pages on a website, it selects a canonical URL to represent all of them and prioritizes this page during indexing and ranking. The canonical link element can be either used in the semantic HTML <head> or sent with the HTTP header of a document. For non-HTML documents, the HTTP header is an alternate way to set a canonical URL. Canonical URLs help search engines consolidate the information they have for the individual URLs (such as links to them) into a single, authoritative URL.