为什么Github项目文档页面URLs区分大小写?什么是负面影响? [英] Why are Github project document page urls case sensitive? What are the negative effects?

查看:398
本文介绍了为什么Github项目文档页面URLs区分大小写?什么是负面影响?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚刚为我的github项目repo gh-pages分支上传了一个样本index.html页面。但是,似乎用于访问文档的url是区分大小写的。正确的网址如下所示:

http:// harindaka.github.com/ASPTokenInput/

然而,如果我在小写github中使用相同的url显示页面未找到消息。即

http://harindaka.github.com/ asptokeninput /


  1. 为什么URL区分大小写?

  2. 这会对此产生负面影响吗?搜索引擎可见性和浏览器缓存等。

  3. 区分大小写的url方法的缺点/优点是什么?

  4. 在github上的不同情况下可以有相同的名称和网址? (shivers:-O)

预先致谢。

解决方案

对于你的第四个问题,我只是试图在Github上创建一个新的存储库,这个存储库只与现有的(我自己的帐户)不同,并且我得到了一个Name is already taken信息。所以,不,你不能有两个只有大小写不同的存储库。



(只有大小写的情况下,存储库中的目录和文件才有可能不同尽管文件系统允许这样做。)


I Just uploaded a sample index.html page for my github project repo gh-pages branch. However it seems the url used to access the documentation is case sensitive. The correct url is as follows,

http://harindaka.github.com/ASPTokenInput/

However if I use the same url in lowercase github displays a page not found message. i.e.

http://harindaka.github.com/asptokeninput/

  1. Why is the URL case sensitive?
  2. Will this negatively affect search engine visibility and browser caching etc.?
  3. What are the disadvantages/advantages of a case sensitive url approach?
  4. Does this mean some other project can have the same name and url in a different case on github? (shivers :-O)

Thanks in advance.

解决方案

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.)

这篇关于为什么Github项目文档页面URLs区分大小写?什么是负面影响?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆