0

I'm struggling with the single product URL path.

If I go to horloges-mannen.nl/herenhorloges/casio.html (just an example), I can choose between the recommended and just watches brand itself. When I click on one from the recommended list, it gives this URL: horloges-mannen.nl/a158w.

But when I click by the other watches, it gives this URL: horloges-mannen.nl/herenhorloges/casio/a158w

How can I get them all the same way, like the /category/subcategory/product URL (2nd from those 2 links)?

  • Why do you want that? If it's for SEO, there's a better solution which is to enable the "Canonical URL" in Magento's configuration. – Dan Jun 9 '15 at 13:48
  • It's not for SEO, it's just to let it look nicer. – MiniPwnr Jun 11 '15 at 8:08
1

There are huge discussion what is better from a SEO perspective, having the category in the URL or not.

Magento creates a rewrite for each category the product is in. Turning on the Canonical URL as @Dan suggested, avoids penalties for duplicate content.

The only "out of the box" way to have only one URL is, to turn category in URL off. (this is what I heard at the moment the recommended way, but I'm no SEO expert)

To have only one URL per product, you have to remove the category from the URL:

System > Config > Catalog > Catalog 
> Search Engine Optimization > Use Categories Path for Product URLs: no

Answer on the comment

What I want, is the full categoriers path for every product, also if I click on recomended, you're telling me the complete opposite right now ;)

Yes, I did. To fix this I think you should still turn it off and change the indexer which writes the url rewrite, to use one (or the only) category of a product, so when a product url is requested from the url_rewrite, you get the one with the whole categories in it.

  • I don't want it for SEO especially, the owner of the site just want it to look nicer when you choose a product, so you don't get 2 different links. – MiniPwnr Jun 11 '15 at 8:10
  • just turn it of ;) :D – Fabian Blechschmidt Jun 11 '15 at 8:31
  • What do you mean by turn it off? – MiniPwnr Jun 11 '15 at 11:09
  • updated the answer. – Fabian Blechschmidt Jun 11 '15 at 11:57
  • What I want, is the full categoriers path for every product, also if I click on recomended, you're telling me the complete opposite right now ;) – MiniPwnr Jun 12 '15 at 7:22

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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