I write, ship and sell software products. iOS/OS X app developer based in Singapore, working remotely. This is my blog.
This is about configuring both apex and www subdomain for GitHub Pages.
- Configure GitHub Pages in the repository settings as described
- Set the custom domain as the apex domain, e.g.
- In DNS provider, add CNAME record for
<usernamme>.github.io(yes, just the domain name; it doesn't include the repo name)
- In DNS provider, add ANAME record for
- Set low TTL for testing
curl https://example.comreturns content correctly
curl https://example.comshows a redirect
- Set a higher TTL
Like this post? Follow me on Twitter.