News:

You may pay someone to create your store, or you visit our seminar and become a professional yourself with the silver certification

Main Menu

I need unique URL for Product Page

Started by idor, February 19, 2020, 10:35:00 AM

Previous topic - Next topic

idor

Hello,

In virtuemart eshop I have various products in several categories.
I notices that the URL & breadcrumbs is different in the same product.
Ex. I have these categories:
Category 1 > Category 2 > Pruduct
and the product belongs in Categoy 1 and 2

The problem is that I get two different links
www.mysite.com/category-1/category-2/product.html
and www.mysite.com/category-1/product.html

and breadcrumbs  Category 1 > Category 2 > Pruduct
and Category 1 > Pruduct

I need the beadcrumb to be always Category 1 > Category 2 > Pruduct
and the URL
www.mysite.com/category-1/category-2/product.html

How can I solve this?

Thank you

balai

It a known issue.

Although you cannot change the url format, you can set a "canonical" category to your product, through the product form.

This will indicate to the search engines, which url to index (based on the category).
Hence no matter which page is visited, they will treat those 2 as the same page.

idor

Can I eliminate the first link
www.mysite.com/category-1/product.html
and always call the second?
www.mysite.com/category-1/category-2/product.html

I need the only one link to exist to be the one based on the last level category.

Maybe with .htaccess if it´s not possible through VM?

idor

Finally I installed sh404sef plugin and I get www.mysite.com/product-name.html
which is OK for me.

idor

About the breadcrumbs I still have no solution.
What I need is to maintain the Virtuemart category path and finally the product name
Category 1 > subategory 1a > Sub-subategory 1ai etc... > Product Name

I would appreciate if someone could help me with this.

PRO

Quote from: dkaneloglou on February 22, 2020, 12:53:37 PM
Finally I installed sh404sef plugin and I get www.mysite.com/product-name.html
which is OK for me.


no need to do that, you could just disable "full category tree" in urls