Jump to content

How to Make Theme Support Canonical URL Feature


Recommended Posts

One of our clients asked that we build a webshop for them with PrestaShop. They're currently using version 1.5.4.0. The website has been up and running for about 4 months now and there is one rather pressing issue - which other people also seem to be having.

 

The problem is that Google Webmaster Tools is reporting hundreds of duplicate pages (yes, hundreds). The shop contains hundreds of products, some of which appear in multiple categories. Adding a

<link rel="canonical" href="..." />

should solve this problem.

 

It looks like PrestaShop supports this by default, because there is a 'canonical url' feature in the SEO section of the admin module. However, we've always had this feature activated, so it obviously doesn't work. Also, there is no such canonical link tag in the source code.

 

On the SEO page, it says that your theme must be compatible with the canonical URL feature, so my question is, how do you make your theme compatible with the canonical URL feature? When I use the default theme, the canonical URL is not there, so does even the default theme not support this, or does this feature not do what it should do and should we use a third-party module?

  • Like 2
Link to comment
Share on other sites

  • 3 weeks later...
  • 2 months later...

@HA

 

http://www.prestashop.com/forums/topic/161514-relcanonical-in-categories-how-to/page-3?do=findComment&comment=896477

 

 

Here is a free module inspired by @studionek's posting

Plz note its a beta version.

Let me know what you thk

I also added a noindex option for SSL pages

 

Great thanks! Downloaded, but where do I add the link rel for each product? 

Link to comment
Share on other sites

×
×
  • Create New...