How to change URL to productlist

  • Posts: 46
  • Thank you received: 0
  • Hikashop Business
1 day 6 hours ago #368226

-- HikaShop version -- : 6.1.0
-- Joomla version -- : 5.3.2
-- PHP version -- : 8.3

Hi Nicolas,

I have changed the url to the productlisting to better suit my needs. I did this by changing the alias of the menu item.
But when I want to open a productpage on the website it still sends me to the old URL (hikashop-menu-for-products-listing).
I've cleared all the caches (Joomla and browser). I've tried different browsers. No solution.

I've also searched the web and forum, but could not find a answer. Only that there was a setting on the displaytab of the configuration, but I can't see it and that tip was 11 years old.

Can you help me. I am probably overlooking something.

With kind regards,
Rachel Walraven

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

  • Posts: 84233
  • Thank you received: 13675
  • MODERATOR
1 day 4 hours ago #368227

Hi,

Caching could indeed have been the source of the issue.

Another potentially source is the "canonical URL" option of your products.
There, you can specify the main URL for each product. It's great for SEO.
And if you activate the "Force canonical URLs on listings" setting of the HikaShop configuration page ( www.hikashop.com/support/documentation/5...ig.html#features_sef ), the system will use that canonical URL over the dynamically generated URL, which relies on the menu item alias.
And thus, if you change the menu item alias of the products listing, then you also need to update the canonical URL of the products, otherwise, when accessing the canonical URL, you'll get a 404 error.

Supposing that you have a lot of products, and you need to update the canonical URL on all of them, you can go in the menu System>Mass actions, and click on the "new" button. Then, add an action "update the values" on the "product_canonical" column, with the mode "operation" and with the value:

replace(product.product_canonical, 'xxx', 'yyy')
where xxx is the old alias, and yyy is the new alias.
Then, when you click on the "process" button, it will run the mass action and fix the canonical URL of the products being processed.
Note that by default, the "limitations" area limits the processing to only the first 500 products. So, you'll have to change this, and/or add a filter so that you can process more products or process them in several batches if you have a lot of them.
You can read more about mass actions here:
www.hikashop.com/support/documentation/167-massaction-form.html

The following user(s) said Thank You: webwerk

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

  • Posts: 46
  • Thank you received: 0
  • Hikashop Business
11 hours 3 minutes ago #368228

Hi Nicolas,

Thanks for the elaborate answer. I've reset the canonical urls of the products and it works like a charm.

With kind regards,
Rachel Walraven

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

Time to create page: 0.072 seconds
Powered by Kunena Forum