Hi,
I checked your website and the problem is indeed not with the aliases. It's what you said in your first message which led me to say this.
You said
If the name of these sub-categories is one-word and I set the canonical link to "type-part/name", the link opens in Hikashop's category module without any problems. But if the name of the sub-category is two-words (for example "connector cable") and the canonical link of this category is set to "part-type/connector-cable", when I click on this sub-category in Hikashop's categories module, gives a 404 error.
In other words, categories with two-word names and no menu items will give a 404 error.
But this has nothing to do with having two words.
For example, you have the category "key" with the URL
electroseyfi.ir/part-type/key
which generates the same error.
And with the new information you provided in your new message, it indeed has nothing to do with the alias.
I think the problem is elsewhere.
Either:
- you let HikaShop generate the canonical URL of your categories in the past and then you changed the settings of the SEF section of the HikaShop configuration, rendering all these URLs invalid
- you directly entered invalid URLs as canonical URLs of your categories.
Take for example the page:
demo.hikashop.com/index.php/en/hikashop/...g/display-in-div-div
It displays a listing of categories.
The first category there will have the URL:
demo.hikashop.com/index.php/en/hikashop/...iv/category/12-shoes
The "category" text there comes from the "category SEF name" setting of the HikaShop configuration.
I can see in your categories URLs that they don't have anything between the alias of the menu item and the last part of the URL with the category alias.
So the URL will only be valid if the "category SEF name" setting is empty in your HikaShop configuration.
I'm thinking you might be using something else and because of that the system tries to look for a product with the alias "key" and not for a category. That's why the 404 error says "product not found" ( محصول يافت نشد ), and not "category not found".