Skip to content

Create multiple websites with multiple domains in one repo? #22779

Closed Answered by otter-computer
Moire9 asked this question in General
Discussion options

You must be logged in to vote

Hi @SirNapkin1334, welcome to the GitHub Support Community!

GitHub Pages only supports a single custom domain per repository. For your case I’d instead recommend creating separate repositories to host your different sites—if the content is going to be completely different across both. That way you can keep the source code for both sites separate and allow you to attach your custom domains to each independently.

Once you’ve uploaded your site’s content you can enable Pages from the repository settings and then add your custom domain.

Replies: 3 comments

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants