URL Structure: Lower case VS Upper case

后端 未结 4 1671
既然无缘
既然无缘 2020-12-09 02:56

Just trigger in my mind when I was going through some websites were they having upper case and lower case combination in url something like http://www.domain.com/Home/

4条回答
  •  南方客
    南方客 (楼主)
    2020-12-09 03:15

    I'm going to have to disagree with all established wisdom on this, so I'll probably get downvoted, but:

    If you redirect all mixed case urls to your properly cased url, it solves all the problems mentioned. Therefore it seems this argument is coming from tradition and preference. The point of a URL is to have a user-friendly representation of a page, and if your url is friendlier with upper case, why not use it? Compare:

    moviesforyoutowatch.com/batman-vii-the-dark-knight-whatevers MoviesForYouToWatch.com/Batman-VII-The-Dark-Knight-Whatevers

    I find the mixed case version superior for the purpose. If there's a technical reason that can't be solved with a lower-case compare and redirect, please share it.

提交回复
热议问题