Best way to format pretty URLs for numeric IDs

后端 未结 10 2011
谎友^
谎友^ 2021-02-02 02:48

Alright, so let\'s say I\'m writing a forum application, and I want pretty URLs. However, all my tables use numeric IDs, so I\'m not sure the best way to format the URLs for tho

10条回答
  •  暖寄归人
    2021-02-02 03:36

    I'll go for the first one. You know it really doesn't matter now. Since there are Long URLs converter and it will just proliferate and will become the norm in the future. Remember the longer your URL the less SEO points you'll get.

    And you can't control the way people name their forum topics. So really, I'll just choose the first one for simplicity and the norm.

提交回复
热议问题