help with the four different Conanical URL’s

  • Posts: 598
  • Thank you received: 23
  • Hikaserial Subscription Hikashop Multisite
9 years 10 months ago #220685

-- HikaShop version -- : 2.6.0
-- Joomla version -- : 3.4.5
-- PHP version -- : 5.6
-- Browser(s) name and version -- : FF 42

Hello Hikashop Supportteam,

I need your help with the four different Conanical URL’s given to my products. I need the canonical URL with webshop/producten inside and not with component/Hikashop inside. Because when you visit a URL with component/Hikashop inside you can’t see the shoppingcart on the left sidebar. Also for our SEO is webshop/producten the best URL.

Here are some examples of the different URL’s.

WRONG: domain.com/index.php?option=com_hikashop...&category_pathway=22

WRONG: https://domain..com/component/hikashop/product/120-Country_Grey

WRONG: https://domain..com/en/component/hikashop/product/461-Stancil_Bell_Flowers_copy1600617966_copy556125297_copy1567061845

GOOD: https://domain..com/webshop/producten/product/420-wall-paint-aubusson-blue

I have delete the canonical URL’s ‘with the mass action’ like you wrote in the forum. When I checked all the URL’s they got all a number 0 into the canonical field. So far so good! After visiting the product in the frond-end, this product gets the right/good canonical URL with webshop/producten in it, but the next day, the products I didn’t visit get all a wrong canonical URL. And for some unknown reason some with index.php?option=com………etc.

So I think the only solution is to visit all the product before Google or another search engine will visit our website. But I think this is not the most beautiful solution, is there another way to do this?

I have Hikashop 2.6.0 set (Force canonical URLs on listings = Use canonical URL if specified)

Hope to hear from you.

Kind regards,
Lumiga


Kind regards,
Lumiga
Attachments:
Last edit: 9 years 9 months ago by Lumiga.

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

  • Posts: 13201
  • Thank you received: 2322
9 years 10 months ago #220727

Hi,

Please install these two attached plugins, they will update the current mass action plugins and add an action which allow to update the canonical urls.

This language string can be added in the override part of the language file in Configuration > Languages:

HK_SET_CANONICAL="Set canonical url"


Then just set up a mass product action, and in the action select "Set canonical url" and fill the field with the desired url.
Something like:
https://domain.com/webshop/producten/product/{product_id}-{product_alias}
In this case the product_id and product_alias will automatically be replaced by the product information.

File Attachment:

File Name: plg_hikash...1-16.zip
File Size:16 KB


File Attachment:

File Name: plg_system...1-16.zip
File Size:29 KB

Attachments:
Last edit: 9 years 9 months ago by Xavier.
The following user(s) said Thank You: Lumiga

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

  • Posts: 598
  • Thank you received: 23
  • Hikaserial Subscription Hikashop Multisite
9 years 9 months ago #220800

Hi Xavier,

Thank you very much!!!
It works perfect.


Part of the message is hidden for the guests. Please log in or register to see it.


Is this plugin something that will come into the next release?
Because I think it's really helpful to everybody.

Kind regards,
lumiga


Kind regards,
Lumiga
Last edit: 9 years 9 months ago by Lumiga.

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

  • Posts: 13201
  • Thank you received: 2322
9 years 9 months ago #220802

Hi,

Yes, this will be present in the next release :)

ps: sorry to have let the domain name

Last edit: 9 years 9 months ago by Xavier.

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

Time to create page: 0.060 seconds
Powered by Kunena Forum