Skip to content

Different repos corresponding to different sub-directories #23668

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

You must be logged in to vote

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 of igordot.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 using subdo…

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
2 participants