Author Topic: virtuemart urls for products and search  (Read 154 times)

kiasati

  • Jr. Member
  • **
  • Posts: 77
  • A beginner
virtuemart urls for products and search
« on: November 20, 2017, 16:54:30 pm »
Hi

1.
i had a category named "smart-product". i changed it to "smart products". when i checked my site with a crawler i realized that i have the products in it in both:
www.example.com/smart-product/product-detail
www.example.com/smart-products/product-detail
i checked and in both menu and product categories alias is "smart products".
why has this happend? how can i solve it?


2.
there are some URLs indexed by google that are making problems.
www.example.com/results,458-547
they have "results," in them like the URL above.
how these URLs are created? where in virtuemart? how can i prevent virtuemart form creating these kine of urls?

Thanks

jjk

  • Global Moderator
  • Sr. Member
  • *
  • Posts: 3187
  • using Piwik instead of Google Analytics
Re: virtuemart urls for products and search
« Reply #1 on: November 21, 2017, 10:41:43 am »
1. Probably cached pages. Clear all your site caches from the Joomla menu 'System > Clear Cache'.
2. Google tries to follow all links it can find. Those 'results...' should be from following the links from your pagination settings for the list box in the 'Configuration > Templates' page. However, your example looks strange to me, because the number is descending (results, 458-547). In general those pagination links indexed by Google don't hurt at all, because the pages actually exist and their source code includes a canonical url.
Non-English Shops: Are your language files up to date?
http://virtuemart.net/community/translations

Studio 42

  • Contributing Developer
  • Full Member
  • *
  • Posts: 2410
  • Joomla & Virtuemart addon developper
    • Studio 42 - Virtuemart & Joomla extentions
  • VirtueMart Version: 2.6 & 3.0.x.y
Re: virtuemart urls for products and search
« Reply #2 on: November 22, 2017, 23:36:53 pm »
You need to add a redirect rule for your old category smart-product to smart-products in your .htaccess file.
If the shop is in the root www.example.com/smart-product/product-detail is valid if the alias product-detail is a product, so no 404 at all(vm dont check anymore for category to set 404, but only to set the
 Joomla menu itemid)