How to Add a Custom Domain to a GitHub Pages Website

First after purchasing a domain, go to manage domain list.

  • Add the following host records.

GitHub Pages domain record IP Addresses:

  • Type: A Record | host: @ | IP: 185.199.108.153
  • Type: A Record | host: @ | IP:185.199.109.153
  • Type: A Record | host: @ | IP:185.199.110.153
  • Type: A Record | host: @ | IP:185.199.111.153
  • Type: CNAME Record | host: www | username.github.io.

Go the github repo, which you want to host -> Settings -> Pages

Custom Domain -> (Update the name of the domain here)

By doing this, you can see, after opening https://siteshp.com, the page is blank.

If you face such problems, then follow the following steps

Enjoy!

© 2022 Delog • Crafted with ❤️ by W3Layouts