A few days earlier, I tried pointing my subdomain of site 5 site to github page site, but it was really confusing, so in this post I am trying to write out how I solved the issue. I assume that you are trying to do this with site5 backstage control panel. Or, similar can be the case with other hosts too. My site5 site is lakshmanbasnet.com, which I was using here to explain here.
- login to your cpanel
- navigate to
dashboardand click on
Subdomainswhich is in
- create a new subdomain of your choice, I am making
- navigate to
Advanced DNS Editor
- here you will see
A recordsbeing automatically generated by site5 for our new subdomain
- if we work on this sub domain set up with A record then Github will pass errors and warnings for us saying to amend the DNS to
- so, to setup our sub domain as
CNAME, lets delete all the A record we see with record name of the recent sub domain we created, for in my case I would delete of nepalowlfestival
- now lets add two new CNAME records, while adding new CNAME record the record name will be our subdomain and address will be our default github username followed by github.io for me its lakshmanbasnet.github.io, find yours and enter it. The two new CNAME will have following formats:
Record name: nepalowlfestival.lakshmanbasnet.com.
TTL:(Time to Live) the time period for new record enforcement, the least the site can accept the faster it would be , in my case I would give 60
Host: lakshmanbasnet.github.io (replace lakshmanbasnet with your username)
Record name: www.nepalowlfestival.lakshmanbasnet.com.
After this, the setup is done. Make sure you have added CNAME into your github page site for the desired sub domain. In my case my
CNAME file contains:
Comment down for any queries!