Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialJoonas Häkkinen
6,038 PointsWhat really is the best way to link Namecheap to GitHub Pages?
I noticed that Namecheap gives different instructions for linking to GitHub Pages than this video. According to Namecheap you should use the following setup:
- A record for @ pointing to 192.30.252.153
- A record for @ pointing to 192.30.252.154
- CNAME record for www pointing to your username.github.io (username should be replaced with your actual GitHub account username): (https://www.namecheap.com/support/knowledgebase/article.aspx/9645/2208/how-do-i-link-my-domain-to-github-pages )
Also, GitHub recommends using a custom subdomain instead of an apex domain for GitHub Pages. (https://help.github.com/articles/about-custom-domains-for-github-pages-sites/). Could you clarify on the difference between a subdomain and an apex domain?
Would it then make sense to have the following setup on Namecheap:
- URL Redirect Record for @ pointing to http://www.yourdomain.com
- CNAME record for www pointing to your username.github.io
I would imagine that this would redirect the apex domain (yourdomain.com) to the subdomain http://www.yourdomain.com which would then be linked to GitHub with the CNAME record. This way you would get the benefits of using a custom subdomain instead of an A record to link to GitHub Pages.
So basically the question is: which instructions should I follow and what really is the best way to do this?