在自定义域错误的子域中发布Github页面

问题描述 投票:1回答:1

似乎这是一个相当受欢迎的话题,但我仍然无法解决我的问题。我有一个域http://www.illiteratibooksandcoffee.com/指向我在github上的illiterati回购。现在,我创建了一个子域theotherspace.illiteratibooksandcoffee.com/,它指向我在github中的theotherspace存储库。我的问题是,当我将网站测试为username.github.io/theotherspace时,它可以正常工作,但是在设置theotherspace.illiteratibooksandcoffee.com/后,我的页面将无法呈现,并且出现以下错误。

在Firefox控制台上此:

enter image description here

这在chrome控制台上:

enter image description here

以下是我在github上的配置:

enter image description here

我的CNAME记录似乎也已正确设置:

enter image description here

我很茫然,任何输入都非常感谢!

github subdomain github-pages cname namecheap
1个回答
0
投票

正如@Belouccio在this帖子中回答的,在github上的docs文件夹中,您不必将index.html中的基本href =“ / myproject /”更改为基本href =“ /”。

© www.soinside.com 2019 - 2024. All rights reserved.