Subdomain that redirects to github page

I wanted to set up a subdomain that points to my github page for this blog. This is such a simple thing that took me quite a while. So this is how to do it:

I got my domain from GoDaddy

First way

  • Sign into GoDaddy account
  • Domains
  • Manage DNS
  • Scroll down till you see a sectino called “FORWARDING”
  • add subdomain and choose just forwarding
  • go to github page setting
  • Pages > add custom domain
  • Wait a bit and you are good to go

Second way

  • In manage DNS, add a CNAME file of something like blog that points to your id.github.io
  • go back to your github page and add your custom subdomain