Skip to content

Instantly share code, notes, and snippets.

@mapsam
Last active June 11, 2023 11:59
Show Gist options
  • Save mapsam/ce60b87eea561ea6bdbf to your computer and use it in GitHub Desktop.
Save mapsam/ce60b87eea561ea6bdbf to your computer and use it in GitHub Desktop.
Namecheap > Github pages

Namecheap > Github pages

Pointing your domains to a gh-pages branch requires three steps.

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

  2. Add your Github domain as the CNAME alias on Namecheap. your_username.github.io. (mind the extra period!)

  3. Add a CNAME with your new domain name in your repository. lowercase and nothing else

@mapsam
Copy link
Author

mapsam commented Jul 6, 2020

Updated IP addresses in the original post to reflect the latest recommendations from GitHub ✅

@ppalone
Copy link

ppalone commented Feb 10, 2021

What if I have an app like username.github.io/myapp
Will setting the CNAME to username.github.io/myapp work?

@palmerabollo
Copy link

@ppalone No, it won't work.

@H4YWYRE
Copy link

H4YWYRE commented Dec 4, 2021

I tried using name cheap for the DNS and the custom domain name but I get a white screen with only the title of my website.

@LogicKahanHai
Copy link

How to get CSR from github pages for Namecheap domain?

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