SEO strategy unique ID in URL [closed]
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 3 years ago.
Improve this questionWhat would be the best way for a URL to look like if it should contain an ID and a name?
/product/123/screwdriver-black /product/screwdriver-black/123 /product/123-screwdriver-black /product/screwdriver-black-123
Thanks
IMO use what SO uses.
/product/123/screwdriver-black
That way you are still able to access the product 123 via
/product/123
For example, while SO puts the question name in the link, it is 100% optional. You can still access this question with
http://stackoverflow.com/questions/3480964
as a rule it is best to limit the number of directories, as google is supposed to add weight to pages that are higher level e.g. not nested in multiple folders so something like /product/123-screwdriver-black would be best
however, In reality i'd use /product/123/screwdriver-black because it is cleaner and having worked on very large ecommerce sites with very good seo rankings i've found it makes little difference to google, as one good inbound link can make a bigger impact than almost any url formatting will.
For ranking I'd suspect there is little or no difference so I'd let other factors dictate.
The numbers are most likely the way a page is identified so should be easy to parse and before content which has no influence on the content (the text for keywords).
Google often truncates the display url in its search results by showing the start and end with the middle removed. So the keywords may work best at the end.
If you change the text in the url you should create a redirect. This can be slightly easier if the static part of the url is first and the variable part last.
Using folders (/) as the delimiter for the id removes the need to use special characters like underscore (_) to distinguish where the id is. Keeping the url easier to read and enter.
Depth of a folder structure does not mean depth in a website, and people often mix them up.
So my bet is on
/thing/345/name-of-thing
The preffered structure is that of significance.
More general to the top, more specific to the bottom.
This is the natural (well, according to G, we could always get into a big philosophical debate on that) linking order.
So, it only makes sense to use
/product/screwdriver-black/123
Product is more general than screwdriver and 123 is a specific screwdriver.
Makes sense. :)
I would recommend
/product/screwdriver-black-123/
or
/product/screwdriver-black/123/
精彩评论