Skip to content

Instantly share code, notes, and snippets.

@todgru
Last active September 13, 2020 20:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save todgru/6c9d2854140d30a4f47e539885bcc3f9 to your computer and use it in GitHub Desktop.
Save todgru/6c9d2854140d30a4f47e539885bcc3f9 to your computer and use it in GitHub Desktop.
Setup Namecheap dns for github pages

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".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment