Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/github/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
在自定义域的子域中发布Github页面错误_Github_Subdomain_Github Pages_Cname_Namecheap - Fatal编程技术网

在自定义域的子域中发布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=“/”