At Namecheap, in the domains advanced dns settings, add A
records and CNAME
record. The CNAME
will allow the www.example.com
to be redirected to the apex domain, example.com
.
A
record, host:@
value:185.199.108.153
A
record, host:@
value:185.199.109.153
A
record, host:@
value:185.199.110.153
A
record, host:@
value:185.199.111.153
CNAME
record, host:www
value:example-username.github.io
At Github, repo settings, set custom domain to example.com
, check "Enforce HTTPS".