Problem in URL Sef for Menu and Module

  • Posts: 7
  • Thank you received: 0
10 years 9 months ago #181271

-- url of the page with the problem -- : khoedep365.vn
-- HikaShop version -- : 2.3.4
-- Joomla version -- : 3.3.6
-- PHP version -- : 5.3.28
-- Browser(s) name and version -- : firefox 33.1

Hi!
in my website URL for menu and module is different

1. In my menu (ex: 2 level: food/fresh-food):
Url level 2: http://khoedep365.vn/san-pham/food/fresh-food in this category have 1 product (vegetables). url for this product is: http://khoedep365.vn/san-pham/food/fresh-food/product/vegetables this url good for SEO

But at Url level 1: http://khoedep365.vn/san-pham/food --> click product then url: http://khoedep365.vn/san-pham/food/product/vegetables so not good
==> 1 PRODUCT BUT 2 URL. I WANT ONLY 1 URL: http://khoedep365.vn/san-pham/food/fresh-food/product/vegetables

2. In module: Url also different with menu
product example: "vegetables" at Home page

a. Module show product



b. Module category
in level 2


Please help me this problem

Thank!

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

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

Hi,

I think that in your case you have to use the canonical url feature.
Set the canonical url in the product edition page for each products and set the option "Force canonical URLs on listings" to "Use canonical and generate it if missing", or another value depending on how you want to manage these urls.

The following user(s) said Thank You: lienkhuong

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

  • Posts: 7
  • Thank you received: 0
10 years 9 months ago #181575

Hi Xavier

in "Force canonical URLs on listings" i set "Use canonical and generate it if missing", and each a product i in input Canonical URL but url not chage. please view in attach file
link wrong: khoedep365.vn/san-pham/product/vegetables
true link: khoedep365.vn/san-pham/food/fresh-food/product/vegetables




Thank

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

  • Posts: 84304
  • Thank you received: 13698
  • MODERATOR
10 years 9 months ago #181648

Hi,

The system will automatically use the canonical URL on all the products listings displayed by HikaShop.
If you don't see the canonical URL on some of the products listings, it's either:
- that they are not hikashop products listings (which I don't think apply here right ?)
- that there is some caching activated on the website preventing you from seeing the change (check that you don't have any caching activated, or clear it)
- that you're not using the normal SEF system of Joomla but a third party SEF extension which uses its own system for SEFing URLs (it could be the case here so please check on that)
- you had edited views of Hikashop from a previous version of HikaShop which didn't support canonical URLs on listings via the menu Display>Views (it could well come from that and in that case, removing the customization of the product views and reapplying your changes to the new version of the view files would be a solution)
- in a similar manner, your template came with HikaShop overrides for an old version of HikaShop.
In both last cases, an easy way to check that is to see if you have the folder templates/YOUR_TEMPLATE/html/com_hikashop/product and if you do, rename it via FTP. That will disable all the product view overrides and you can see if you get the new URLs on the listings.

The following user(s) said Thank You: lienkhuong

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

  • Posts: 7
  • Thank you received: 0
10 years 9 months ago #181928

Hi nicolas
Thank for repply.
My problem Url in this case "in a similar manner, your template came with HikaShop overrides for an old version of HikaShop.
In both last cases, an easy way to check that is to see if you have the folder templates/YOUR_TEMPLATE/html/com_hikashop/product and if you do, rename it via FTP. That will disable all the product view overrides and you can see if you get the new URLs on the listings. "
. I solved and all url Product in menu and module is OK (use canonical URL)

However still one problem: Url for category module not ok (in level 2):

Url in menu ok: http://prntscr.com/5cbhs but Url in category module not ok: http://prntscr.com/5cbidt

Please help me

Thank

Last edit: 10 years 9 months ago by lienkhuong.

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

  • Posts: 84304
  • Thank you received: 13698
  • MODERATOR
10 years 9 months ago #182005

Hi,

Well, it's probably something similar.
The view overrides of the category listing are in templates/YOUR_TEMPLATE/html/com_hikashop/category
So I guess that if you rename that folder, it will use the canonical URLs too.

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

  • Posts: 7
  • Thank you received: 0
10 years 9 months ago #182054

Hi, nicolas

i rename Category in "templates/YOUR_TEMPLATE/html/com_hikashop/category" but it not work :(

Please help me
Thank

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

  • Posts: 84304
  • Thank you received: 13698
  • MODERATOR
10 years 9 months ago #182100

Hi,

And did you enter a canonical URL in your categories ?
What did you enter for that category ?

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

  • Posts: 7
  • Thank you received: 0
10 years 9 months ago #182212

Hi

i entered anonical URL for categories
level 1: http://prntscr.com/5d088f
level 2: http://prntscr.com/5d08e6

Thank

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

  • Posts: 7
  • Thank you received: 0
10 years 9 months ago #182610

Hi, nicolas
Please help me canonical URL in my categories

Thank

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

  • Posts: 13201
  • Thank you received: 2322
10 years 7 months ago #187470

Hi,

It seems that you have solved your issue. The urls look as you wish , right ?
Just as a memo, the canonical urls must use a valid url, so to have desired url structure you have to play with the settings in Configuration > Features > Sef Urls and with the menu / module settings.

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

  • Posts: 7
  • Thank you received: 0
10 years 7 months ago #187750

Hi Xavier

My issue not solved, i must use third party module for my issue

thank

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

Time to create page: 0.084 seconds
Powered by Kunena Forum