2016-03-01 15 views
3

我一直在使用github pages因为很长一段时间,并使用自定义域名重定向功能我user websiteprahladyeri.github.io到我自己的域名通过把一个文件CNAMEhttps://www.prahladyeri.com重定向。Github页面 - 禁用除单个站点以外的所有站点的自定义域重定向?

但是,对于我保持开源项目的网页页面(gh-pages分支),它自动将foo项目没有指定CNAME时重定向到www.prahladyeri.com/foo。是否有可能为我的项目使用默认的prahladyeri.github.io/foo方案,但为我的主站点保留自定义重定向?

这是否容易实现?

+0

也许更好的解决办法是把他们在新帐户分开的开源项目。 –

+0

@DavidJacquel每个项目都有多个账户,你失去了Github提供的整合优势(比如按状态划分所有问题,为所有拉取请求提供单一视图等)。这些都是我首先使用Github的一些优势! –

回答

1

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

GitHub的页面的帮助文章指出,

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 
+0

我面临同样的问题。我在GitHub页面上部署我的网站,然后尝试自定义我的域,它不会退出。但是当我打开我的网站时,它将重定向到该自定义域。我将如何删除那一个。帮我做什么? –

相关问题