0

I have a cctv camera shop and I'm using the last version of joomla and virtuemart.

I have a "bullet hd camera" the categories are:

camera --> hd-camera --> bullet-hd-camera

bullet-hd-camera is a subcategory for hd-camera and hd-camera is a sub-category for camera

I assigned the product to all the 3 categories so when a user clicks on hd-camera in the menu, the user could see all the cameras in hd-camera's subcategories including bullet cameras.

The problem is the product has 3 different urls.

  1. sitename.com/camera/the-pruduct-detail
  2. sitename.com/camera/hd-camera/the-pruduct-detail
  3. sitename.com/camera/hd-camera/bullet-hd-camera/the-pruduct-detail

and thats totally bad seo-wise

How can I have only the third url for the product?
How can I solve this?

Another problem is recently only the third product page displays correctly.

ERRORS IN CONSOLE:

1. Uncaught ReferenceError: jQuery is not defined at دوربين-مداربسته-هايک-ويژن-مدل-ds-2ce16d0t-it1-detail:10 دوربين-مداربسته-هايک-ويژن-مدل-ds-2ce16d0t-it1-detail:14

2. Uncaught ReferenceError: jQuery is not defined at دوربين-مداربسته-هايک-ويژن-مدل-ds-2ce16d0t-it1-detail:14 دوربين-مداربسته-هايک-ويژن-مدل-ds-2ce16d0t-it1-detail:22

4. Uncaught ReferenceError: jQuery is not defined at دوربين-مداربسته-هايک-ويژن-مدل-ds-2ce16d0t-it1-detail:22 cloud-zoom.1.0.3.js:418

5. Uncaught ReferenceError: jQuery is not defined at cloud-zoom.1.0.3.js:418 jquery.flexslider-min.js:5

6. Uncaught ReferenceError: jQuery is not defined at jquery.flexslider-min.js:5 دوربين-مداربسته-هايک-ويژن-مدل-ds-2ce16d0t-it1-detail:50

7. Uncaught ReferenceError: jQuery is not defined at دوربين-مداربسته-هايک-ويژن-مدل-ds-2ce16d0t-it1-detail:50 %D8%AF%D9%88%D8%B1%D8%A8%D9%8A%D9%86-%D9%85%D8%AF%D8%A7%D8%B1%D8%A8%D8%B3%D…A%DA%A9-%D9%88%D9%8A%DA%98%D9%86-%D9%85%D8%AF%D9%84-ds-2ce16d0t-it1-detail

8. Failed to load resource: the server responded with a status of 500 (Internal Server Error)

2 Answers 2

0

You could use a 3rd party component such as ReDJ to manually create redirects from the first 2 URL's to the 3rd URL?

ReDJ Component

Edit: Here is a bit more info about using regular expressions with ReDJ, additionally the component follows Henry Spencers implementation of these redirect rules, which can be found here.

Regards D

2
  • it's hard to do this manually for a large number of products
    – kiasaty
    Jul 15, 2017 at 14:32
  • @kiasati Not necessarily - ReDJ supports regular expressions - I've updated my answer with some more info :)
    – Dtorr1981
    Jul 17, 2017 at 23:47
0

Virtuemart has a setting named "Force canonical category" within the product form. You are advised to use that setting, when a product belongs in more than 1 category. This will actually add a canonical tag to your product pages, indicating the search engines which page to index.

As for your js errors, please go to the Virtuemart Configuration > Templates and enable the setting: Use Joomla jQuery framework in FE . If this does not help, please address to your template developer.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.