Why are Github project document page urls case sensitive? What are the negative effects?

徘徊边缘 提交于 2019-11-27 09:04:35

For your 4th question, I just tried to create a new repository on Github which would only differ by case to an existing one (of my own account), and I got a "Name is already taken" message. So, no, you can't have two repositories differing only by case.

(It is possible to have directories and files inside the repository differing only by case, if your file system allows this, though.)

If you have a personal github page (username.github.io), you can create a folder inside this repository with your project name in lowercase, and inside that folder create an index.html redirecting to original url. As example: https://github.com/MiguelPynto/MiguelPynto.github.io/tree/master/shiftdisplay

I am not sure this is directly related to GitHub.
The w3c standards does mention:

URLs in general are case-sensitive (with the exception of machine names).
There may be URLs, or parts of URLs, where case doesn't matter, but identifying these may not be easy. Users should always consider that URLs are case-sensitive.

In other words, you cannot be sure what OS is behind the web server you are accessing (a case-sensitive Linux one, or not a case-sensitive one with Windows, as described in the article "Are URLs Case Sensitive?").

Having case-sensitive URLs is nice and all for computers. Search engines will be fine, they are, in the end, different ASCII characters. As per users, they will most of the times get confused and think the page doesn't work.

One could either use a redirection URL for the GitHub page and never advertise the GitHub URL, or just indicate URL (case sensitive) everywhere.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!