Make Github pages case insensitive?

早过忘川 提交于 2019-12-06 03:42:53

问题


Is there a way to make github pages case insensitive?

Or in jekyll to ensure all url's are lowercase?

For example this url is valid:

http://www.example.net/Vegas-2014.html

but this 404s

http://www.example.net/vegas-2014.html

I don't like that from a usability perspective. (think text messaging urls, typing them in, etc.)

I know I can fix this with permalink, but I'm wondering if there is a way to do it through configuration of Jekyll or pages or some other technique.


回答1:


Sorry but case-sensitiveness is a standard for URL that is respected in Unix/Linux world. Windows world in more case insensitive but it's another world ;-).

An Apache, Nginx or other open-source server is case-sensitive by default and can be configured to be case insensitive.

In the Jekyll/Github pages world, we must take care of our cases.

But maybe you can give try to Jekyll redirect from.



来源:https://stackoverflow.com/questions/25815954/make-github-pages-case-insensitive

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