在自定义域的子域中发布Github页面错误
这似乎是一个相当流行的话题,但我仍然无法解决我的问题。我有一个域名在自定义域的子域中发布Github页面错误,github,subdomain,github-pages,cname,namecheap,Github,Subdomain,Github Pages,Cname,Namecheap,这似乎是一个相当流行的话题,但我仍然无法解决我的问题。我有一个域名http://www.illiteratibooksandcoffee.com/指向我在github上的illiteratirepo。现在我创建了一个子域theotherspace.illiteratibooksandcoffee.com/,它指向我在github中的theotherspacerepo。我的问题是,当我以username.github.io/theotherspace的身份测试站点时,它工作正常,但是在设置theo
http://www.illiteratibooksandcoffee.com/
指向我在github上的illiterati
repo。现在我创建了一个子域theotherspace.illiteratibooksandcoffee.com/
,它指向我在github中的theotherspace
repo。我的问题是,当我以username.github.io/theotherspace
的身份测试站点时,它工作正常,但是在设置theotherspace.illiteratibooksandcoffee.com/
之后,我的页面将不会呈现,并且我得到以下错误
在firefox控制台上执行以下操作:
这在chrome控制台上:
下面是我在github上的配置:
我的CNAME记录似乎也设置正确:
我不知所措,非常感谢您的任何意见 当@Belouccio在帖子中回答时,必须将github上文档文件夹index.html中的base href=“/myproject/”更改为base href=“/”。当@Belouccio在帖子中回答时,必须将github上文档文件夹index.html中的base href=“/myproject/”更改为base href=“/”