Subdomain of custom domain on Github pages
Asked Answered
A

2

7

We are allowed to use our own custom domain with Github Pages.

For example, I have my page: http://example.com which points to http://username.github.io/project

But now I need to create a subdomain for another folder inside my repo. like

http://zuckerberg.example.com ---> which points to ---> http://username.github.io/project/zuckerberg

Is it possible to accomplish on github? I can't find any documentation about subdomain of custom domains :/

I found this so far https://help.github.com/articles/user-organization-and-project-pages but it's really confusing

Angelynanger answered 25/8, 2014 at 4:50 Comment(2)
How did you get a custom domain for a project?Foolproof
@QPaysTaxes help.github.com/articles/…Angelynanger
A
6

You will not be able to point a custom subdomain to http://username.github.io/project/zuckerberg. You will have to point it to another project http://username.github.io/otherproject Some more documentation https://docs.github.com/en/github/working-with-github-pages/managing-a-custom-domain-for-your-github-pages-site.

Australian answered 25/8, 2014 at 5:37 Comment(0)
C
1

Examble of real-world CNAME files

The username.github.io repository has a CNAME file with the domain www.domain.com.

 - The User Pages site at username.github.io redirects to www.domain.com.
 - The Project Pages site at username.github.io/project redirects to www.domain.org/project.
Concomitance answered 25/8, 2014 at 5:44 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.