Custom subdomain


I have successfully set up a custom domain for my GitHub pages. I was wondering if I would be able to setup subdomains for some pages.

So for example instead of using I could use

Knowing that I have a CNAME file ( at the root of my gh-pages branch, can I put a different CNAME ( in a subfolder?

Many thanks.

1 Like

As per GitHub custom domain document, CNAME file should be at root of the repository. If it works for you, try adding the new web pages into new repository and then point that sub-domain to that new repository. But the problem with this approach is new repository needs to be added whenever new sub-domain needed 

1 Like