I have a GitHub repository set up to host a small static site. The repository that hosts this is in the following format:
This repository is setup to use a custom domain and has a CNAME file to do so properly. This repository works exactly as expected.
Now I want to set up a project page and utilize the
gh-pages branch for a different repository. When I do this, though, the CNAME in the first repository seems to apply and I am redirected to
example.com/REPOSITORYNAME instead of using the expected
username.github.io/projectname associated with this separate repository.
How can I continue to use the
username.github.io repository with a custom domain and the
gh-pages branch on a different repository without redirecting the
gh-pages repository to the custom domain defined in the first repository?