Do we need slash-separated URLs instead hyphen for better SEO?

In other words, could anyone explain which one is better and why?

  1. https://example.com/category/product

  2. https://example.com/category-product

  • 1
    Slashes indicate directory levels. Hyphens are part of the name of the file (or product if you wish). Those are two completely seperate things. – Rob Jun 10 '19 at 13:19

Browse other questions tagged or ask your own question.