Configuring Github Pages for site5 sub domains

site5 domain github page

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 dashboard and click on Subdomains which is in Domains
  • create a new subdomain of your choice, I am making nepalowlfestival
  • navigate to Advanced DNS Editor
  • here you will see A records being 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 CNAME
  • 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:


CNAME 1
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)


CNAME 2
Record name: www.nepalowlfestival.lakshmanbasnet.com.
TTL: 60
Host: lakshmanbasnet.github.io


Your Gift of $200 Cloud Hosting Credit is Here. Claim Now!


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:




nepalowlfestival.lakshmanbasnet.com

Comment down for any queries!

Before you go, let's stay connected
About the Author
Lakshman Basnet
Nepali Digital Media Marketer currently based in Adelaide, South Australia who apart from playing with his cat - Eleven, also enjoys developing web content, publishing blogs and YouTube videos in his free time.

Leave a Comment