How to make a domain point to a sub-folder of a GitHub Page site?

Viewed 806

I've got my GitHub Page sites setup like this:

myname.github.io
    + project1
    + project2

So when I go to myname.github.io/project1, it opens project 1, etc.

What I would like is setup a custom domain eg. myproject2.com and point that to myname.github.io/project2 only, so if I go to myproject2.com it would serve the content of "project2".

I've read the GitHub Page doc but they don't mention this particular case, so I'm not sure if it can be done. Any idea?

1 Answers
Related