SEO friendly URLs

  • Posts: 15
  • Thank you received: 0
  • Hikashop Business
9 months 3 weeks ago #359389

-- HikaShop version -- : 5.0.3
-- Joomla version -- : 3.10.12
-- PHP version -- : 7.4
-- Browser(s) name and version -- : Chrome

Hi,

How can I create custom URLs that are SEO-friendly? We have six categories, and I want to include the category name and product aliases in the URLs.
www.mywebsite.com/category1/product1-alias
www.mywebsite.com/category2/product2-alias
www.mywebsite.com/category3/product3-alias
www.mywebsite.com/category4/product4-alias
www.mywebsite.com/category5/product5-alias
www.mywebsite.com/category6/product6-alias

Thanks,
Alireza

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

  • Posts: 83007
  • Thank you received: 13398
  • MODERATOR
9 months 2 weeks ago #359394

Hi,

You need to :
- create one menu item of the type "products listing" for each category and configure them to list all the products of each category. You can make them hidden if you don't want them to appear on your frontend menu area. You also want them to be at the first level of menu items, and their alias should reflect the name of their corresponding category.
- set the "product SEF name" setting of the HikaShop configuration to empty.
- turn on the "remove category and product id from URL" setting in the HikaShop configuration.
That way, when you access the page www.mywebsite.com/category1 the products listed there should have the URL you're looking for. If they don't, it probably means that you've configured a different canonical URL in each product and you have the "force canonical URL on listings" setting activated in the HikaShop configuration. In that case, you need to update the canonical URL of your products to use the URL you're looking for. You'll need to do that anyways so that other menu items can use the URL you're looking for instead of their own dynamically generated URL.

The following user(s) said Thank You: omnitron

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

Time to create page: 0.057 seconds
Powered by Kunena Forum