[英]how can i fix failing to load resource status 404 github pages
I have deployed my project on Github and it gives this 👇我已经在 Github 上部署了我的项目,它给出了这个👇
errors on the console and how may i fix it?控制台上的错误,我该如何解决?
and link to the git is: https://blessja.github.io/Bottelary/和 git 的链接是: https : //blessja.github.io/Bottelary/
github repo: https://github.com/blessja/Bottelary github 仓库: https : //github.com/blessja/Bottelary
Change the incorrect file URLs in the index.html
.更改
index.html
不正确的文件 URL。
For example , you have written <link rel="stylesheet" href="/css/main.css">
which targets to https://blessja.github.io/css/main.css
, which gives a error 404.例如,你编写了
<link rel="stylesheet" href="/css/main.css">
,它的目标是https://blessja.github.io/css/main.css
,它给出了一个错误 404。
Instead type <link rel="stylesheet" href="./css/main.css">
or <link rel="stylesheet" href="css/main.css">
which will get you to the right file, ie https://blessja.github.io/Bottelary/css/main.css
而是键入
<link rel="stylesheet" href="./css/main.css">
或<link rel="stylesheet" href="css/main.css">
这将让您找到正确的文件,即https://blessja.github.io/Bottelary/css/main.css
And try changing all the incorrect file paths mentioned in the index.html
file.并尝试更改
index.html
文件中提到的所有不正确的文件路径。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.