How to host github page in cargo subdomain!
Github Documentation of how to host if you want to check
Click to check the document
Okay! Let's start from setting subdomain in CARGO
1. GO this link to find your DNS first!
https://u.cargo.site/account/domains/
(on the top left corner, click into your account!)
2. Go the "Edit DNS"
3. click 'Add record'
4. change type to 'CNAME'
5. First Column: type 'the SubDomain Name You Want.your DomainName.com.'
For example:
bread.yichunlan.com
something.yichunlan.com
mygithubbutwanttohoseon.yichunlan.com
...remember change the domain name to yours!
6. Second Column: 'your Github UserName .github.io'
For example:
yclanlan.github.io
userlanlan.github.io
justtyputyourusername.github.io
7. put the subDomain to your github page setting
Go to your repository, click 'setting' then go to the 'pages' tab on the left side, find the custom domain, put the subdomain in! ( The thing you put in at the step5. the first Column)
7-1. If you have't publisded your website as a github page.
-> remember to turn the repository to public firts.
when you click into the 'setting', scroll down to see the danger zone, which have the private and public setting!
then go to the 'pages' tab to select the root you want to publish! After these two steps you should can put the subdomain to your page!
8.Wait!! It will take a while, so be patient!!
I waited about half hour to make it happen!
How to host netlify page in cargo subdomain!
1.Upload your file to netlify
2.Go to the project you want to host on your domain
3.Decide the subdomain name and type it with your domain
For example:
bread.yichunlan.com
something.yichunlan.com
mygithubbutwanttohoseon.yichunlan.com
4.Go to your DNS setting
add the CNAME, copy and paste the subdomain name you decide
copy and paste the netlify URL (behinde the CNAME)
5.Wait!! It will take a while, so be patient!!