Canonical URL

  • Posts: 177
  • Thank you received: 5
9 years 8 months ago #195017

-- HikaShop version -- : 2.3.0

For some pages (Categories) I use Canonical URL option. But in result page rel=canonical mentioned twice, from Joomla and from Hikashop.
Try google search site:mysite.com and see results:
5 copies of one page

mysite.com/kafe-test/category.html
mysite.com/category/12-testhome.html
mysite.com/component/hikashop/category/12-test.html
mysite.com/category/12-.html
mysite.com/product/listing/12-testcomponent.html

And joomla's "rel=canonical" just fully duplicate url, and show wrong canonical.
Hikashop's "rel=canonical" shows everywhere right " mysite.com/category/12-testhome.html ", for all 5 urls.

But it looks like:
<head>
<link href=" mysite.com/category/12-.html " rel="canonical" />
<link rel="canonical" href=" mysite.com/category/12-testhome.html " />
</head>

Why if I want for some pages hikashop's "rel=canonical", it don't remove original Joomlas?

Please Log in or Create an account to join the conversation.

  • Posts: 26158
  • Thank you received: 4028
  • MODERATOR
9 years 8 months ago #195054

Hi,

Are you sure that the canonical is really added by Joomla and not by an external plugin or another component ?
Which Joomla version are you using ?

Regards,


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

Please Log in or Create an account to join the conversation.

  • Posts: 177
  • Thank you received: 5
9 years 8 months ago #195094

Jerome wrote: Hi,

Are you sure that the canonical is really added by Joomla and not by an external plugin or another component ?
Which Joomla version are you using ?

Regards,

Joomla 3.2.2
I don't use external SEF. Only from Joomla's Global configuration.

Please Log in or Create an account to join the conversation.

  • Posts: 82868
  • Thank you received: 13378
  • MODERATOR
9 years 8 months ago #195284

Hi,

You need to deactivate the Joomla system SEF plugin via the Joomla plugins manager.
That way, you'll only have HikaShop's canonical URLs and it will work fine.

Please Log in or Create an account to join the conversation.

  • Posts: 177
  • Thank you received: 5
9 years 8 months ago #195310

nicolas wrote: Hi,

You need to deactivate the Joomla system SEF plugin via the Joomla plugins manager.
That way, you'll only have HikaShop's canonical URLs and it will work fine.


I have 5000 items in shop. Should I fill every CANONICAL URL parameter by hand? It will take a year)

Please Log in or Create an account to join the conversation.

  • Posts: 82868
  • Thank you received: 13378
  • MODERATOR
9 years 8 months ago #195402

Hi,

In that case, simply set the "Force canonical URLs on listings" option of the HikaShop configuration to "Use canonical URL and generate it if missing". That way, the system will fill the canonical URL of the products automatically when needed.

Please Log in or Create an account to join the conversation.

  • Posts: 344
  • Thank you received: 3
9 years 7 months ago #196812

nicolas wrote: Hi,

You need to deactivate the Joomla system SEF plugin via the Joomla plugins manager.
That way, you'll only have HikaShop's canonical URLs and it will work fine.


Joomla! 3.4.1
Hikashop: 2.4.0
Force canonical URLs on listings: Use canoncial URL and generate if missing.

Do I need to deactivate the Joomla system SEF plugin in order to make the HikaShop's canonical URLs work correctly ?

Last edit: 9 years 7 months ago by river.

Please Log in or Create an account to join the conversation.

  • Posts: 82868
  • Thank you received: 13378
  • MODERATOR
9 years 7 months ago #196877

Hi,

HikaShop canonical URLs works correctly regardless of how you configure that SEF plugin.
It's just that this SEF plugin adds a second canonical URL on HikaShop pages (while it shouldn't) and because of that, search engines find two canonical URLs on the pages and it's not good for SEO. So that's why we recommend that you turn it off.

Please Log in or Create an account to join the conversation.

  • Posts: 344
  • Thank you received: 3
9 years 7 months ago #196909

ok tnx for reply

The way my site is configured when I have the System - SEF plugin enabled together with HikaShop canonical URLs I can only find one cannoncial link "<link rel="canonical" href="http://" when I click "view source" in Google chrome under a product page.

And when I disable the System - SEF plugin I still only have one rel="canonical" href="http link.

Please Log in or Create an account to join the conversation.

  • Posts: 82868
  • Thank you received: 13378
  • MODERATOR
9 years 7 months ago #196917

Hi,

If it doesn't causes the problem on your website then great, you can keep it on. Maybe the latest version of Joomla avoid the issue

Please Log in or Create an account to join the conversation.

  • Posts: 344
  • Thank you received: 3
9 years 7 months ago #197114

Sounds good to me =)

Please Log in or Create an account to join the conversation.

  • Posts: 586
  • Thank you received: 23
  • Hikaserial Subscription Hikashop Multisite
8 years 9 months ago #229685

Hi Nicolas,

FYI
The latest version of Joomla still generate the second canonical URL with system - SEF plugin ON

Best Regards,
Lumiga


Kind regards,
Lumiga

Please Log in or Create an account to join the conversation.

  • Posts: 82868
  • Thank you received: 13378
  • MODERATOR
8 years 9 months ago #229688

Hi,

Yes, it seems to be the way they want it to work, although I don't understand why.

Please Log in or Create an account to join the conversation.

Time to create page: 0.082 seconds
Powered by Kunena Forum