【问题标题】:404 error when trying to deploy page on github even though index.html is present即使 index.html 存在,尝试在 github 上部署页面时出现 404 错误
【发布时间】:2020-10-09 12:32:02
【问题描述】:

我目前正在尝试将我的页面部署到 github,但出现以下错误。

如果这是您的网站,请确保文件名大小写与 URL 匹配。 对于根 URL(如 http://example.com/),您必须提供 index.html 文件。

我按照说明粘贴链接https://mattfang1999.github.io/PUI2020/,就像在说明中一样。像https://mattfang1999.github.io/PUI2020/homework_5/index.html 这样的操作也不起作用。

以下是我的git目录https://github.com/mattfang1999/PUI2020/tree/main/homework_5

【问题讨论】:

    标签: github deployment github-pages


    【解决方案1】:

    github pages url schema 是<username>.github.io/<repo>,所以你的URL 是https://mattfang1999.github.io/PUI2020.github.io/

    【讨论】:

      猜你喜欢
      • 2020-12-02
      • 1970-01-01
      • 1970-01-01
      • 2019-02-04
      • 1970-01-01
      • 2020-01-12
      • 2020-05-13
      • 2020-12-18
      • 1970-01-01
      相关资源
      最近更新 更多