I have two GitHub pages
To use custom domain for GitHub pages, create
CNAME file and write like:
With this file, you can see domain setting on Github repository > Settings > GitHub Pages like:
Next, open your DNS configure page, setup like:
Wait 1~3 hours(depend on you DNS server or environment).
Then open teminal and type like:
1 2 3 4 5
If you publish username.github.io repository to www.yoursite.com, then GitHub redirects
username.github.io to www.yoursite.com.
However, if you publish another repository to subdomain.yoursite.com, GitHub does not redirect www.yoursite.com/another to subdomain.yoursite.com.
1 2 3 4 5 6
Then www.yoursite.com/another will be redirected to subdomain.yoursite.com.