比如,我的网站是 http://aline2013.com,我想把demo通过打开连接 http://aline2013.com/demo,这种方式展示,
之前用http://aline2013.github.io/demo是能展示的。现在输入会被重定向到http://aline2013.com/demo, 然后提示404
比如,我的网站是 http://aline2013.com,我想把demo通过打开连接 http://aline2013.com/demo,这种方式展示,
之前用http://aline2013.github.io/demo是能展示的。现在输入会被重定向到http://aline2013.com/demo, 然后提示404
因为这其实是两个项目一个是你aline2013.github.io项目,一个是aline2013.github.io下的demo项目,两个项目都开了page服务。http://aline2013.github.io/demo这个地址之前访问的也就是第二个项目,http://aline2013.com/demo重定向 是因为第一个项目并没有demo目录及相关HTML文件所以404,能明白不?
demo应该是另一个github-page吧
在aline2013.github.io上绑了域名会影响到其他项目,其他项目的page也会跳转到这个域名上,404很正常
解决方式有两个
不再aline2013.github.io上建博客,用其他的项目,然后再绑域名
你可以在demo项目上绑定一个域名,比如demo.aline2013.com