Skip to content

Github Pages with single custom (sub)domain for multiple repositories #22433

Answered by yoannchaudet
tenbits asked this question in General
Discussion options

You must be logged in to vote

Hello and welcome here!

I have created a CNAME entry docs.foo.tld to username.github.io

This should be sufficient. The special repository named <your username>.github.io is what we call your user site. If you set a custom domain on that repository, all your other Pages sites (project sites) will automatically route on that new domain. Only one repository at a time can be associated with a given custom domain (we enforce the unicity).

You can learn more about the different type of Pages sites here: About GitHub Pages - GitHub Docs.

Replies: 6 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
5 participants