For example, I have a webshop where each product has its unique ID and I want to build SEO friendly URL for a product page. An old-school way that is mentioned almost in every article looks like this: http://mywebshop.com/categoryname/1111-some_product_name where
- 1111 is ID of the product and is important
- some_product_name is just for google and users; changing this text to "some_other_product_name" will not have any effect
But some websites (including StackOverflow) uses different format and build URLs like: http://mywebshop.com/categoryname/1111/some_product_name
So, my question is which URL is better from search engine point of view? http://mywebshop.com/categoryname/1111-some_product_name OR http://mywebshop.com/categoryname/1111/some_product_name? Is there any reason why forward slash should be used instead of hyphen?
From implementation point of view there is not so much difference. Also, for the end-users they look identical.
UPDATE 2017-03-02 @John Conde: this is not the duplicate. The link that you provided explains how to structure URL if you have hierarchy of entities. I agree that my question looks similar, but in my case I have parts of the URL that will never be part of user's search phrase (i.e., nobody will try to search for "1111", users type in product name).