For example, if a webpage can be accessed through different URLs such as
http://example.com/page1 and
http://www.example.com/page1,
the website owner can specify one of these URLs as the canonical version. This tells search engines that the specified URL is the preferred URL to index, and any other version of the page should be considered a duplicate.
Canonical URLs are typically specified using the HTML "link rel=canonical" tag in the header of the page. This tag tells search engines which URL is the canonical version of the content, and should be used for indexing and ranking purposes.
Canonical URL is the preferred URL for a webpage that is chosen by website owners to indicate the primary version of a particular content. It is used to prevent duplicate content issues, which can harm the website's search engine rankings. By designating a canonical URL, webmasters can indicate which version of a page should be indexed by search engines, which can help to avoid confusion and maintain the website's SEO performance.
To specify a canonical URL, you can use the rel="canonical" link element in the HTML code of the page. This element tells search engines which version of a page is the preferred version, and should be indexed and ranked accordingly.
For example, if a webpage has multiple versions, such as:You can add a canonical link element to the head section of the HTML code of each page to specify the preferred URL. For instance, if you want to set "http://example.com/page1" as the canonical URL for the above versions, you can add the following line of code to the head section of each page:
link href="http://example.com/page1" rel="canonical"
By specifying the canonical URL, you can ensure that search engines consider the preferred version of the page when determining rankings, rather than being confused by multiple versions of the same content.
Avoid Canonicalization
or
In general, it is the process of making something canonical-- that is, in conformance with some specification(according to rules). To canonicalize is to ensure that data conforms to canonical rules, and is in an approved format. Canonicalization may sometimes mean generating canonical data from noncanonical data(not according to rules).
- www.sample.com
- sample.com/
- www.sample.com/index.html
- sample.com/home.asp
Things to be taken in consideration:
- Pick the main URL & use it consistently in the website.
- Use 301 redirect to main URL.
- Don't remove www Vs non-www URL'S
Other ways that urls get canonicalized:
- keeping or removing trailing slashes,
- trying to convert urls with upper case to lower case,
- removing session IDs from bulletin board or other software.
Comments