added 72 characters in body
Source Link
Robert hue
  • 357
  • 3
  • 10

A canonical link element is an HTML element that helps webmasters prevent duplicate content issues by specifying the "canonical" or "preferred" version of a web page.

By default there can be numbers of different versions available for single page of your website. For example.

http://www.example.com/
http://www.example.com/index.html
http:/example.com/
http://example.com/index.html
https://www.example.com/
https://www.example.com/index.html
https:/example.com/
https://example.com/index.html

Technically there all are different URLs because all these can have different pages and content based on your server configuration. But if they all have some content or points to same page as usually the case, then we must define canonical link.

So we define canonical link in HTML page to tells search engines that the preferred location of this url (the "canonical" location, in search engine speak) is http://example.com/ instead of http://www.example.com/.

So we define canonical link like this in head section of web page.

<link rel="canonical" href="http://example.com/"/>

You can have any version you want, it's up to you. There are no technical advantages or disadvantages.

It's up to you if you want to define https version your main website or without https.

NOTE: If you are using a CMS like WordPress, Joomla, Drupal etc then you must already have canonical link in your page. In that case you do not have to do anything. You are set.

A canonical link element is an HTML element that helps webmasters prevent duplicate content issues by specifying the "canonical" or "preferred" version of a web page.

By default there can be numbers of different versions available for single page of your website. For example.

http://www.example.com/
http://www.example.com/index.html
http:/example.com/
http://example.com/index.html
https://www.example.com/
https://www.example.com/index.html
https:/example.com/
https://example.com/index.html

Technically there all are different URLs because all these can have different pages and content based on your server configuration. But if they all have some content or points to same page as usually the case, then we must define canonical link.

So we define canonical link in HTML page to tells search engines that the preferred location of this url (the "canonical" location, in search engine speak) is http://example.com/ instead of http://www.example.com/.

<link rel="canonical" href="http://example.com/"/>

You can have any version you want, it's up to you. There are no technical advantages or disadvantages.

It's up to you if you want to define https version your main website or without https

A canonical link element is an HTML element that helps webmasters prevent duplicate content issues by specifying the "canonical" or "preferred" version of a web page.

By default there can be numbers of different versions available for single page of your website. For example.

http://www.example.com/
http://www.example.com/index.html
http:/example.com/
http://example.com/index.html
https://www.example.com/
https://www.example.com/index.html
https:/example.com/
https://example.com/index.html

Technically there all are different URLs because all these can have different pages and content based on your server configuration. But if they all have some content or points to same page as usually the case, then we must define canonical link.

So we define canonical link in HTML page to tells search engines that the preferred location of this url (the "canonical" location, in search engine speak) is http://example.com/ instead of http://www.example.com/.

So we define canonical link like this in head section of web page.

<link rel="canonical" href="http://example.com/"/>

You can have any version you want, it's up to you. There are no technical advantages or disadvantages.

It's up to you if you want to define https version your main website or without https.

NOTE: If you are using a CMS like WordPress, Joomla, Drupal etc then you must already have canonical link in your page. In that case you do not have to do anything. You are set.

Source Link
Robert hue
  • 357
  • 3
  • 10

A canonical link element is an HTML element that helps webmasters prevent duplicate content issues by specifying the "canonical" or "preferred" version of a web page.

By default there can be numbers of different versions available for single page of your website. For example.

http://www.example.com/
http://www.example.com/index.html
http:/example.com/
http://example.com/index.html
https://www.example.com/
https://www.example.com/index.html
https:/example.com/
https://example.com/index.html

Technically there all are different URLs because all these can have different pages and content based on your server configuration. But if they all have some content or points to same page as usually the case, then we must define canonical link.

So we define canonical link in HTML page to tells search engines that the preferred location of this url (the "canonical" location, in search engine speak) is http://example.com/ instead of http://www.example.com/.

<link rel="canonical" href="http://example.com/"/>

You can have any version you want, it's up to you. There are no technical advantages or disadvantages.

It's up to you if you want to define https version your main website or without https