Saikat Kumar Dey

Hosting on Github Pages

  • Make sure you have a CNAME file with your custom website in it. Make sure that you have it in your “gh-pages” branch.

  • Ensure that you have configured the CNAME in your DNS provider’s console. I am using Cloudflare. So, I have configured 2 records

    • CNAME to redirect “saikatkumardey.com” to “saikatkumardey.github.io”.
    • CNAME to redirect “www.saikatkumardey.com” to “saikatkumardey.github.io”.
  • Make sure that you set the Source of your Github Pages site to be built from the gh-pages branch. Go to Settings > Pages > Source. Check if it’s set to gh-pages. This caused me a lot of pain. It’s set to “main” by default.