Github页面-禁用除单个站点以外的所有站点的自定义域重定向?

Pra*_*eri 5 cname github github-pages

我已经使用github pages了很长时间,并且使用自定义域重定向功能通过添加文件将用户网站prahladyeri.github.io我的域重定向到我自己的域,该域为https://www.prahladyeri.comCNAME

但是,对于gh-pages我维护的开源项目的网页(分支),如果未指定,它将自动将foo项目重定向到。是否可以对我的项目使用默认方案,但是对我的主站点保持自定义重定向?www.prahladyeri.com/fooCNAMEprahladyeri.github.io/foo

这很容易实现吗?

Ste*_*enG 4

截至 2016 年 7 月,我认为这是不可能的。( https://help.github.com/articles/custom-domain-redirects-for-github-pages-sites/ )

Github Pages 帮助文章指出

Project Pages site owned by a user account, such as username.github.io/projectname, will be Automatically redirected to a subdirectory of a User Pages site custom domain (user.example.com/projectname), unless a different CNMAE is specified, such as project.example.com
Run Code Online (Sandbox Code Playgroud)