I am launching an online store and I am wondering what will be more SEO friendly for the product page URL:
a) domain.com/category-name/product-name OR
b) domain.com/product-name
I already have URLs for product category pages with the format domain.com/category-name.
On the one hand, I heard (but cannot find evidence) that Google like hierarchies of trees in a URL (vote for "a"). On the other hand, although a longer URL can result in a lower density of the key cord, also "product_name" comes as the last part of the URL, so it is probably the least important (vote for "b"). Perhaps both options are equally effective for SEO?
PS. I know about the canonical URL, but itβs not, I donβt want / need both URL formats, I just want to choose the best one.
Pawel source share