【问题标题】:Github not detecting an inner index.htmlGithub 未检测到内部 index.html
【发布时间】:2021-02-18 23:19:25
【问题描述】:

我正在https://yilmazhasan.github.io/pwp github 上发布我自己的个人资料网站

在进行一些更改之前它可以工作,现在它为 https://yilmazhasan.github.io/pwp/src/index.html 提供 404虽然有一个 index.html 文件。

我正在将 pwp/index.html 重定向到 pwp/src/index.html,它看到的是第一个但没有看到第二个。

由于是公开的,所以可以在https://github.com/yilmazhasan/pwp看到他们

这可能是什么原因造成的?

(注意:它适用于本地主机)

【问题讨论】:

    标签: github http-status-code-404 github-pages


    【解决方案1】:

    即使没有将 pwp/index.html 重定向到 pwp/src/index.html,您也可以简单地将 publication folder 更改为 src,如 seen here(对于 docs 文件夹,但同样的想法适用)

    【讨论】:

    • 感谢@VonC,指出错误部分。我看不到那里的 /src 文件夹以及添加它的方式。但是我通过在文档之外取消传输 src 文件夹来解决。
    猜你喜欢
    • 2018-01-03
    • 2020-10-09
    • 1970-01-01
    • 1970-01-01
    • 2012-07-16
    • 1970-01-01
    • 2019-06-24
    • 1970-01-01
    • 2016-10-10
    相关资源
    最近更新 更多