Different repos corresponding to different sub-directories #23668
-
For Additionally, if it really is possible, does that mean that all those directories have to be on GitHub? If different directories are for different projects, all those projects would have to be hosted on GitHub. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
Hi @igordot, welcome to the GitHub Community Forum! Yes, this is possible to do! If you add your custom domain to a repository called You can then create new repositories and enable GitHub Pages and they’ll be hosted at As for the second part of your question, yes, all these directories would need to be hosted on GitHub. You could use subdomains to host external sites on other hosting services though. For example, if you’re using your apex domain |
Beta Was this translation helpful? Give feedback.
-
Would this also work for multiple domains? For example, can I use |
Beta Was this translation helpful? Give feedback.
-
It can only handle one inherited domain at a time—the domain that’s attached to your You can attach custom domains to these other repositories though, and serve them directly at any other domains you own, though these won’t use the directory structure, they’ll just be served directly from whatever domain you attach. You can only attach a custom domain to a single repository so you’ll only be able to use this domain for one repo. But you can use subdomains for this too, so you can attach |
Beta Was this translation helpful? Give feedback.
Hi @igordot, welcome to the GitHub Community Forum!
Yes, this is possible to do! If you add your custom domain to a repository called
igordot.github.io
then your custom domain will be used in place ofigordot.github.io
for all sites hosted from your GitHub account.You can then create new repositories and enable GitHub Pages and they’ll be hosted at
https://example.com/repository-name/
.As for the second part of your question, yes, all these directories would need to be hosted on GitHub. You could use subdomains to host external sites on other hosting services though. For example, if you’re using your apex domain
example.com
on GitHub, you could host sites on external services usingsubdo…