I'm looking for solution of how to make the product always have a static URL with category name, no matter from what category I entered. I want URL to always look like this:
But instead, I'm getting a bunch of URL's:
http://example.com/product-name http://example.com/category/product-name http://example.com/category/subcategory/product-name
I know that I can add canonical URL tag, but it's not an option in this case.
Thank you, any suggestions about from where should I start are very welcome!