Developer forum

Forum » Ecommerce - Standard features » Canonical product urls from multiple pages

Canonical product urls from multiple pages

Davor Zlotrg
Reply

I have 2 questions:

1. Is it possible to have the product urls without group names, for example www.mysite.com/product-name

and

2. I have multiple category pages with different groups attached

/category-page-1

/category-page-2

Now I have a page that shows all products on offer, /offer. How can I make the product urls not to be /offer/product-name on offers page but to match the correct category-page/product-name url? The reason I am asking is that I would have the same product with multiple urls that is not SEO friendly. Is there a way to handle this out of the box?

 


Replies

 
Nicolai Høeg Pedersen
Reply

Hi Davor

@1: Yes, without groupnames, but not without pagename. So you can have /products/awesome-product instead of /products/somegroup/awesome-produc. To accomplish that, do not include &GroupID= in the links in your templates. Only problem is, that the navigation then does not know which group is open and collapses. But in some scenarios where you are using just facetted search, that is just great.

In DW9 though, this will change so you can get exactly what you want.

@2: First of all, it is not a SEO problem and it is not duplicate content. Go read on Google webmaster central what duplicate content is. That said, you can configure your way out of it. On a product you can set your primary group and on the group you can set the primary page ID. In your template, you then have 2 different tags with 2 different links - one with the current group/page and one for the primary group and page.

Hope this clarifies, Nicolai

 
Davor Zlotrg
Reply

Hi Nicolai,

I will try to set it up with primary group and primary page.

I also wanted to make a global search for all the products. I was thinking of making a hidden page that has an eCom module attached with all the products inside. The reason for that is that I don't have a single page where all the products are attached but specific category pages. My problem now is how to render the product url, how do I know which category page should I include in the url? Is there a method maybe where I would say GetProductUrl(productId) and I would get the correct url, or something like that? I don't want the url to be /search/product-name (the way it would be right now.)

 
Nicolai Høeg Pedersen
Reply

Hi Davor

If you follow my guideline above, you get a tag that contains the link to the right page that can be used on your list of products.

NP

 

You must be logged in to post in the forum