-
-
Save notTag/4a60598d018124c9ac4a7b1f3e2bac9a to your computer and use it in GitHub Desktop.
Process for setting up github pages with namecheap domain. | |
1. Go to namecheap.com, select and buy domain name. | |
2. Login to namecheap, go to username drop down and select dashboard. | |
3. Go to DomainList | |
4. Click manage button | |
5. Click Advanced DNS tab | |
6. Click add record and add three records: | |
Type: A Record | Host: @ | Value: 192.30.252.153 | TTL: Automatic | |
Type: A Record | Host: @ | Value: 192.30.252.154 | TTL: Automatic | |
Type: CNAME Record | Host: www | Value: username.github.io. | TTL: Automatic | |
NOTE: CNAME record value must have a '.' at the end of it. | |
7. Click Save changes. | |
8. Go to github project (or make new one) and add file called CNAME. In it add the domain name you just purchased. I found that if I didn't add "www" in the beginning then I could access it through "username.github.io/projectName" which would redirect to the namecheap domain but not directly through the namecheap domain. So remember to add "www" in the beginning of the CNAME file! | |
8. Add an index.html to your projects root. | |
9. Go to project settings>Github Pages>Source and change it from none to master branch. Save. | |
9. Enjoy! | |
Helpful resources: | |
https://gist.github.com/mapsam/ce60b87eea561ea6bdbf | |
https://www.namecheap.com/support/knowledgebase/article.aspx/9645/2208/how-do-i-link-my-domain-to-github-pages |
Respect... all the way.
Thank You
Still works. Thank you! I've been trying to get this set up for several days now. The note to add the '.' to the end of the CNAME value is one that I didn't see anywhere else.
As others are saying, github has updated the IP addresses used for the A records. I set mine up like this.
At first, I did get a privacy warning (not using https) when trying to access the site via the apex domain, but not using the subdomain (www.). After waiting about 30 mins that issue resolved itself.
Thank you, you're a legend.
I cannot make it to enforce HTTPS, anyone can help?
Thank you!
I cannot make it to enforce HTTPS, anyone can help?
Somewhat similarly, I'm not able to access the website without typing in www
before the domain. If I just go to the domain without anything in the front or with https://
then it won't connect.
Has anyone else had this issue?
Thank youu
I have the same issue there is just a blank screen being shown nothing else except the title
Merci!