VirtueMart Forum

VirtueMart 2 + 3 + 4 => Security (https) / Performance / SEO, SEF, URLs => Topic started by: kiasati on November 20, 2017, 16:54:30 PM

Title: virtuemart urls for products and search
Post by: kiasati 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
Title: Re: virtuemart urls for products and search
Post by: jjk 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.
Title: Re: virtuemart urls for products and search
Post by: Studio 42 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)