Github Pages 404除了index.html以外的所有内容 [英] Github Pages 404 for everything but index.html

查看:74
本文介绍了Github Pages 404除了index.html以外的所有内容的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我为我们的团队提供了一个Github页面网站,网址为 http://olinaeromarketing.github.io/.我尝试在本地打开index.html,它在我的PC上的chrome浏览器中完美运行.一切都完美.但是,当我将所有内容推送到Github并尝试使用 http://olinaeromarketing.github.io/进行打开时,除index.html之外的所有内容都会显示404错误,并且无法加载.我很困惑为什么会这样.我也无法在网上找到有关此问题的任何信息.

I have a Github pages website for our team at http://olinaeromarketing.github.io/. I've tried opening index.html locally and it works perfectly in chrome on my pc. Everything loads perfect. However, when I push everything to Github and try to open it with http://olinaeromarketing.github.io/, everything except index.html gives a 404 error and can't load. I'm pretty stumped as to why this is happening. I also haven't been able to find anything on the web regarding this issue.

存储库位于 https://github.com/OlinAeroMarketing/OlinAeroMarketing.github.io .顺便说一句,该网站目前是一个在制品,尚未完成.

The repository is located at https://github.com/OlinAeroMarketing/OlinAeroMarketing.github.io. BTW, the website is currently a WIP and not yet finished.

推荐答案

默认情况下,Jekyll用于处理GitHub Pages.以下划线开头的文件/目录对于Jekyll具有特殊含义,因此将其区别对待.

By default, Jekyll is used to process GitHub Pages. Files/directories that begin with an underscore have special meaning for Jekyll and are, therefore, treated differently.

由于您似乎并没有使用Jekyll,因此最简单的解决方案是在根路径中添加一个名为".nojekyll"的文件,以禁用Jekyll功能.

Since you don't seem to be using Jekyll, your simplest solution is to add a file named '.nojekyll' to the root path to disable Jekyll functionality.

查看 https://help.github.com/缺少下划线的文章/文件/以获取更多信息.

为清楚起见,令人讨厌的目录是'_include'.

Just to be clear, the offending directory is '_include'.

这篇关于Github Pages 404除了index.html以外的所有内容的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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