V1.7 Canonical URLs to Avoid Duplicate Content - SEO Module

javialbox

Well-known member
Master
Diamond
Elite
Joined
May 23, 2020
Messages
466
Reaction score
1,729
Points
93
NullCash
155
  • Canonical URLs are used to avoid duplicate content and indicate to search engines which page is the "original" page. This is just an indication added into the code of a page to tell search engines that this page is not the main page and that the original content is located in another page.
  • If you have several similar versions of the same content accessible through multiple URLs and you don't use canonical URLs, search engines would penalize your SEO because these pages would be considered as duplicate content.
  • But if you use canonical URLs, the pages that used to be considered as "duplicate content" (different urls with the same content) would be considered now as one and same page by search engines (they are linked to the canonical URL).

How does it work?
  • The module automatically adds a default canonical url to all your product, category, CMS pages only. By default, the module uses the current url of the page as the default canonical url.
  • Use the general configuration to apply general changes to all your default canonical urls. You can change automatically the domain (if you have duplicate content between domains), the protocol (if you have duplicate content between http and https) or to remove parameters (if you have duplicate content due to urls with parameters) in the default canonical urls.
  • If you want to set a custom canonical URL for a specific product, category, CMS, manufacturer or supplier page, then go to the configuration of this page, choose the option "Custom URL" and write the custom canonical url of your choice.

General configuration (default canonical urls)
The module allows you to set general rules that apply to all your default canonical urls
  • You can set the main domain name (if you use several domains with the same content) to tell search engines which domain is the main one. Ex: if you set for example www.domain2.com as the main domain, the canonical URL of the page www.domain.com/product.com will be www.domain2.com/product.com
  • You can force to add "http" or "https" before the canonical URL (to avoid duplicate between the http and https version of a website). Ex: if you choose to force https for the canonical URL, the canonical URL of the page www.domain.com/product.com will be https://www.domain.com/product.com
  • You can add a list of parameters to ignore in the canonical URL (if you have several URLs for the same page) Ex: if you add in the list for example this list of parameters (live_configurator_token, id_employee, id_shop), the canonical URL of the page www.domain.com/product.html?live_configurator_token=123&id_employee=1&id_shop=1 will be www.domain.com/product.html
  • You can also add the canonical URL into the HTTP header of the page (this part is visible only by web browsers)
  • New features for version 1.7 of Prestashop: You can delete the attribute ID of the product canonical url. We also offer solutions to your Prestashop theme if you do not have the variables activated.

Custom canonical URL
The module also allows you to set a specific canonical URL for the homepage, product, category, CMS, manufacturer and supplier pages you want.
  • To do it, you just need to edit a product, category, CMS, manufacturer or supplier of your shop, the module automatically adds a new section of the configuration of these page.
  • On the configuration of this page, you just need to select the option "Custom URL" and write the custom canonical URL you want, you can set a different URL for each language of your shop (multilingual shop)



https://addons.prestashop.com/en/ur...ical-urls-to-avoid-duplicate-content-seo.html
Thanks friend for sharing module...please update last version v1.1.10 ;)
 

shoaibktk

Active member
Elite
XNullUser
Joined
Jun 22, 2020
Messages
257
Reaction score
144
Points
43
NullCash
471
  • Canonical URLs are used to avoid duplicate content and indicate to search engines which page is the "original" page. This is just an indication added into the code of a page to tell search engines that this page is not the main page and that the original content is located in another page.
  • If you have several similar versions of the same content accessible through multiple URLs and you don't use canonical URLs, search engines would penalize your SEO because these pages would be considered as duplicate content.
  • But if you use canonical URLs, the pages that used to be considered as "duplicate content" (different urls with the same content) would be considered now as one and same page by search engines (they are linked to the canonical URL).

How does it work?
  • The module automatically adds a default canonical url to all your product, category, CMS pages only. By default, the module uses the current url of the page as the default canonical url.
  • Use the general configuration to apply general changes to all your default canonical urls. You can change automatically the domain (if you have duplicate content between domains), the protocol (if you have duplicate content between http and https) or to remove parameters (if you have duplicate content due to urls with parameters) in the default canonical urls.
  • If you want to set a custom canonical URL for a specific product, category, CMS, manufacturer or supplier page, then go to the configuration of this page, choose the option "Custom URL" and write the custom canonical url of your choice.

General configuration (default canonical urls)
The module allows you to set general rules that apply to all your default canonical urls
  • You can set the main domain name (if you use several domains with the same content) to tell search engines which domain is the main one. Ex: if you set for example www.domain2.com as the main domain, the canonical URL of the page www.domain.com/product.com will be www.domain2.com/product.com
  • You can force to add "http" or "https" before the canonical URL (to avoid duplicate between the http and https version of a website). Ex: if you choose to force https for the canonical URL, the canonical URL of the page www.domain.com/product.com will be https://www.domain.com/product.com
  • You can add a list of parameters to ignore in the canonical URL (if you have several URLs for the same page) Ex: if you add in the list for example this list of parameters (live_configurator_token, id_employee, id_shop), the canonical URL of the page www.domain.com/product.html?live_configurator_token=123&id_employee=1&id_shop=1 will be www.domain.com/product.html
  • You can also add the canonical URL into the HTTP header of the page (this part is visible only by web browsers)
  • New features for version 1.7 of Prestashop: You can delete the attribute ID of the product canonical url. We also offer solutions to your Prestashop theme if you do not have the variables activated.

Custom canonical URL
The module also allows you to set a specific canonical URL for the homepage, product, category, CMS, manufacturer and supplier pages you want.
  • To do it, you just need to edit a product, category, CMS, manufacturer or supplier of your shop, the module automatically adds a new section of the configuration of these page.
  • On the configuration of this page, you just need to select the option "Custom URL" and write the custom canonical URL you want, you can set a different URL for each language of your shop (multilingual shop)



https://addons.prestashop.com/en/ur...ical-urls-to-avoid-duplicate-content-seo.html
This is awesome module Thanks
 

dreeashy

Member
XNullUser
Joined
Apr 10, 2021
Messages
433
Reaction score
0
Points
16
NullCash
623
Thank you for being such a great friend and mentor to me. It means a lot.
 
Top