Github Pages with single custom (sub)domain for multiple repositories #22433
-
I have multiple Github Repositories. By all of them
Now I’m trying to create a custom subdomain
I have created a And when I’m adding this custom domain ( How I use all this projects in the path segments
|
Beta Was this translation helpful? Give feedback.
Replies: 6 comments
-
I don’t think github pages can do what you want the way you’re trying to do it. You could just merge all the docs into a single repository. Or you could use your own hosting service and have it do this for you. |
Beta Was this translation helpful? Give feedback.
-
Hello and welcome here!
This should be sufficient. The special repository named You can learn more about the different type of Pages sites here: About GitHub Pages - GitHub Docs. |
Beta Was this translation helpful? Give feedback.
-
Hello everyone! I’m a few months late to the thread, but I’m attempting the same configuration, and somehow, following your steps leaves me with a 404, in a way I cannot comprehend. I’ll provide the details of what I’ve done so far below, what I’m trying to do (which will be pretty apparent from what I’ve done), and some final questions for things I might want to do sometime in the future. First, here’s what I have. (I’ve removed specific information like my username and project name from the screenshots even though you could literally just google them so that anyone else with this issue can more easily refer to this thread) What am I doing wrong? As a follow-up question, I might, in the future, think about adding new subdomains containing multiple projects to my github (say, Thanks! |
Beta Was this translation helpful? Give feedback.
-
From the screenshot: you haven’t set your custom domain in GitHub Pages: |
Beta Was this translation helpful? Give feedback.
-
Updating the repository cname through the pages settings puts my website at |
Beta Was this translation helpful? Give feedback.
-
git submodules + symlinks can achieve this I have a folder |
Beta Was this translation helpful? Give feedback.
Hello and welcome here!
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.