Help
cancel
Showing results for 
Search instead for 
Did you mean: 
Copilot Lvl 2
Message 1 of 2

Can I have multiple github pages , which resides on diffferent directories

Solved! Go to Solution.

Hello,

 

Im doing the Odin project right now.

Because there are a lot of small projects. I went for 1 big project/repo

But they also want you to show some pages.

So for example.

 

I have a javascript project in  /web-development/javascript/project1 which I have to show

and a rails project in /web-development/rails/project1 which I have to show.

As far as I know I can only have on github-pages a repo.

 

Is there a way I can show both pages even in they both in the master branch and in different directories

 

Thanks,

 

Roelof

 

1 Reply
Solution
Copilot Lvl 2
Message 2 of 2

Re: Can I have multiple github pages , which resides on diffferent directories

Yes, but on one shared username.github.io domain, for example, my page https://shushugah.github.io is my main one, and maps to a custom domain https://shushugah.com while https://shushugah.github.io/23 links to a different github page at https://2Jews3Opinions.com One side effect of this is that https://shushugah.com/23 also redirects to https://2Jews3Opinions.com

 

I detail this in my blog post https://medium.com/@shushugah/2-customs-domains-for-2-github-pages-a8a9e77d3e57