简体   繁体   English

Github 页面抛出 404 'Not Found' 错误但站点在测试 index.html 文件时在浏览器中工作

[英]Github Pages throwing 404 'Not Found' Error but Site works when testing index.html file in browser

https://github.com/ndsambare/resumePage.git - Here is the repository that I want to deploy using Github Pages, and here is the website url that is currently throwing the error. https://github.com/ndsambare/resumePage.git - Here is the repository that I want to deploy using Github Pages, and here is the website url that is currently throwing the error.

https://ndsambare.github.io/resumePage/ https://ndsambare.github.io/resumePage/

If you could take a look and let me know why this is happening that would be great.如果您可以看一下并告诉我为什么会发生这种情况,那就太好了。

It works if you access it like this:https://ndsambare.github.io/resumePage/Bootstrap4Resume-master/如果您像这样访问它,它会起作用:https://ndsambare.github.io/resumePage/Bootstrap4Resume-master/

Your entire project is placed inside of Bootstrap4Resume-master folder which is pointless.您的整个项目都放在Bootstrap4Resume-master文件夹中,这是毫无意义的。 Just place it in the root folder.只需将其放在根文件夹中即可。

The link to your website url ishttps://ndsambare.github.io/resumePage/Bootstrap4Resume-master/您网站 url 的链接是https://ndsambare.github.io/resumePage/Bootstrap4Resume-master/

The reason you are getting a 404 error is because there is no index.html file present in your root folder.您收到 404 错误的原因是因为您的根文件夹中没有 index.html 文件。 Your root folder has just the folder "Bootstrap4Resume-master" and a.DS_Store file.您的根文件夹只有文件夹“Bootstrap4Resume-master”和一个.DS_Store 文件。 您的根文件夹

A simple way to fix this is:解决此问题的一种简单方法是:

  • You can move out all the content in "Bootstrap4Resume-master" into the root folder.您可以将“Bootstrap4Resume-master”中的所有内容移出到根文件夹中。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 我可以在github页面站点中提供一个javascript文件而不是index.html吗? - Can I serve a javascript file instead of index.html in my github pages site? 运行 https:/username/github.io/index.html 时出现 ERR_ABORTED 404 错误 - ERR_ABORTED 404 error when running https:/username/github.io/index.html 错误:ENOENT:没有这样的文件或目录,打开 'dist\browser\index.html' - Error: ENOENT: no such file or directory, open 'dist\browser\index.html' Angular 404(未找到)- 无法从 Angular 应用程序中的“index.html”页面加载 Javascript 文件 - Angular 404 (Not Found)- Cannot Load Javascript file from 'index.html' page in Angular Application 使用Node.js错误404的angular-phonecat应用程序未找到:/app/index.html - angular-phonecat application using Node.js error 404 Not Found: /app/index.html Express static 适用于 index.html 但不适用于其他 static 页面 - Express static works for index.html but not other static pages 浏览器如何在单个页面应用程序上缓存index.html - How works browser caching for index.html on a single page application 从Node.js + Ionic应用程序的index.html中的其他文件夹导入js文件时出现404错误 - 404 error while import js file from another folders in index.html in nodejs + Ionic app 调试时找不到404,但URL在浏览器中有效 - 404 Not Found When Debugging, but URL Works in Browser Google Scripts 错误:“未找到名为 index.html 的 HTML 文件。 (第 2 行,文件“代码”,项目“版本 1”)” - Google Scripts Error: “No HTML file named index.html was found. (line 2, file ”Code“, project ”Version 1“)”
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM