2016-08-10 5 views
1

Githubリポジトリに小さな静的サイトをホストするように設定しました。これをホストするリポジトリは、次の形式になります。複数のリポジトリにGithubページを使用しています(カスタムCNAMEが既にある場合)。

username.github.io 

このリポジトリはcustom domainを使用するように設定されているので、適切に行うためのCNAMEファイルを持っています。このリポジトリは、期待どおり正確に動作します。

今度はproject pageを設定し、異なるリポジトリにgh-pagesブランチを利用したいと思います。しかし、これを行うと、最初のリポジトリのCNAMEが適用されているように見え、この個別のリポジトリに関連付けられたusername.github.io/projectnameを使用する代わりにexample.com/REPOSITORYNAMEにリダイレクトされます。


は、どのように私は最初のリポジトリに定義されたカスタムドメインへgh-pagesリポジトリをリダイレクトすることなく、異なるリポジトリにカスタムドメインgh-pagesブランチにusername.github.ioリポジトリを使用し続けることができますか?

+0

可能な重複します(http:// stackoverflow.com/questions/35714796/github-pages-disable-custom-domain-redirection-for-all-but-a-single-site) – StephenG

答えて

1

2016年8月現在、これは可能ではないと私は考えています。 (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 

を参照してくださいと述べGithub pages - Disable custom domain redirection for all but a single site?

[Githubのページ - すべてのために無効にカスタムドメインのリダイレクトが、単一のサイト?]の
関連する問題