Remove or disable URL's with product/listing?

  • Posts: 200
  • Thank you received: 75
9 years 3 months ago #223506

-- HikaShop version -- : 2.6.0
-- Joomla version -- : 3.4.5

Hi,

we have several products listing menu items, and we've seen that all these products listing pages show up in search engine results twice:
Once as the menu item we created, for example: www.ourwebsite.com/menu
But also once with product/listing appended: www.ourwebsite.com/menu/product/listing

We would prefer the URL's with product/listing not to exist at all so that it will also not be indexed by search engines. Is there any way to disable those pages with product/listing in the URL?

Thanks very much in advance.

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

  • Posts: 83483
  • Thank you received: 13505
  • MODERATOR
9 years 3 months ago #223571

Hi,

Yes. Enter the URL you want in the canonical URL setting of your categories and products. That way, the search engines will use that URL and won't flag the other URLs of the same product/category as "duplicate content".

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

  • Posts: 200
  • Thank you received: 75
9 years 3 months ago #223578

Ahh, got it, thank you. We have already been using canonical URL's for all our products, but not yet for the categories. Thanks again!

Last edit: 9 years 3 months ago by GW.

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

  • Posts: 7
  • Thank you received: 1
5 years 9 months ago #307325

hello
is there any way to get rid rid of "product/listing" at the end of urls? it's not only the matter with search engines, however, it causes problems some times.
for example I have created a menu for "hikashop cart" with the name of "myweb/carts". and I have published some module for that menu.
when the user visits his cart for the first time, it redirects user to the "myweb/carts/product/listing". the problem is that no modules are displayed!
and some other issues.

Kind regards
Yousef

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

  • Posts: 83483
  • Thank you received: 13505
  • MODERATOR
5 years 9 months ago #307345

Hi,

When you have a module with a listing of products/categories, the links have to direct to a listing menu item. You can select which menu item to use in the "menu" setting of the module. If you don't select any menu item, it will try to stay on the current menu item but since your current menu item is a cart menu item, it has to add the product/listing part in the URL so that it knows that it is displaying a product/category and not a cart. So usually, what you want to do is to select your main shop listing menu item in that "menu" setting of your module. That way, instead of "myweb/carts/product/listing" you would get "myweb/shop" or something like that.
Also, if you have the "force canonical URLs on listings" setting activated in the HikaShop configuration and that you have a canonical URL entered for your products/categories (recommended for better SEO), then it will use that canonical URL in the module regardless of what you have in the "menu" setting of the module. This will avoid "duplicate content" issues where you have different links pointing to the same page.

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

Time to create page: 0.070 seconds
Powered by Kunena Forum