Pointing your domains to a gh-pages
branch requires three steps.
-
Add the Github IPs as
A
records on Namecheap.
185.199.108.153
185.199.109.153
185.199.110.153
185.199.111.153 -
Add your Github domain as the
CNAME
alias on Namecheap.your_username.github.io.
(mind the extra period!) -
Add a
CNAME
with your new domain name in your repository. lowercase and nothing else
You can see the links below.
https://help.github.com/en/github/working-with-github-pages/managing-a-custom-domain-for-your-github-pages-site#configuring-an-apex-domain