Few questions about URL

  • Posts: 61
  • Thank you received: 0
5 years 6 months ago #299003

-- HikaShop version -- : 3.5.1
-- Joomla version -- : 3.8.12
-- PHP version -- : 7.20.1
-- Browser(s) name and version -- : Chrome

Hello. I would like to have a link to my products like:
myshop.com/Category-Name/Product-Name.html

1. In SEF settings from the URLs removed Category SEF name.
At the moment I have URL like:
myshop.com/product/product-name.html
What have I do, to make it as I want?

2. Also, I can't remove that useless word "product" in the URL, when I'm making Product SEF name empty, I receive an error message:



3. I have few languages on the website, and links are generated absolutely chaotically now. On default language (eng) on the same page I can see links in such view:
myshop.com/product/product-name.html
myshop.com/de/product/product-name.html
myshop.com/lv/product/product-name.html
And that's without switching language somehow! In what moment are all Canonical URLs generated?

Attachments:

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

  • Posts: 81509
  • Thank you received: 13064
  • MODERATOR
5 years 6 months ago #299004

Hi,

1. You need to empty the product sef name setting and you need to create a menu item for that category as a hikashop products listing. Then, when you access that product through that menu item, you'll get that URL. You can then add that URL as "canonical URL" of your product and turn on the "force canonical URLs on listings" setting so that it uses that canonical URL when provided in all the products listings. That way, even if you don't use that menu item for your menus structure and hide it in a menu you don't display on the frontend, you can still use the URL generated for the products of that category through that menu item.

2. You need to enter back "category" in the category sef name setting first. Note that it's not a problem for the category URLs. Since you already have a menu item for each category ( if you followed what I said on point 1), you can enter the URL of the menu item as canonical URL of the category and thus the "category sef name" won't be used at all.

3. If you use the canonical URL system with the "force canonical URLs on listings" setting, you can straighten all that so that you'll have one canonical URL for each language for each product regardless of how the product link is displayed ( a module, a search, a menu item, etc).

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

Time to create page: 0.066 seconds
Powered by Kunena Forum