Using DNSimple to Move Github Pages from a Naked Domain to a Subdomain

For some reason that I don’t quite remember I configured this site to serve from gdovicak.com instead of www.gdovicak.com. When I started writing my (almost) daily journal I decided I wanted the content to be served from www. There is no technical reason for this, I just preferred the www over the naked.


###Steps to Migrate

  1. I updated CNAME file in the root of the jekyll to point to www.gdovicak.com. This file is required by Github Pages as stated here.

  2. I logged into DNSimple (my favorite DNS management app) and deleted the domain redirect record I previously had in there to redirect all requests to www.gdovicak.com to gdovicak.com. The domain redirect feature of DNSimple is one of my favorite features of the service. It has saved me on numerous occasions. This specific occassion if only one of several.

  3. I deleted the A record I had previously created that pointed to github. I set this up a while ago as an A record. If you use the DNSimple “Service” feature to add Github Pages DNS to your domain it will now use an ALIAS record and point to the naked domain. ADD IMAGE OF ALIAS RECORD

4.I then added a redirect record for the naked domain to point to the www domain so all of my links were not broken.


###Final Settings


This process isn’t very difficult but hopefully someone can get a bit of information out of this post to help them solve a problem.