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 trial

Development Tools

Joonas Häkkinen
Joonas Häkkinen
6,038 Points

What 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:

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:

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?