2016-03-01 70 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頁面上部署我的網站,然後嘗試自定義我的域,它不會退出。但是當我打開我的網站時,它將重定向到該自定義域。我將如何刪除那一個。幫我做什麼? –

相關問題