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 trialMona Jalal
4,302 Pointsmonajalal.github.io doesn't work
Monas-MacBook-Pro:htdocs mona$ pwd /Applications/MAMP/htdocs Monas-MacBook-Pro:htdocs mona$ ls -la total 80 drwxrwxr-x 8 mona admin 272 Jun 9 18:35 . drwxrwxr-x@ 22 mona admin 748 Jun 20 2014 .. -rw-r--r--@ 1 mona admin 8196 Jun 9 18:05 .DS_Store drwxr-xr-x 15 mona admin 510 Jun 9 18:36 .git -rw-r--r-- 1 mona admin 18 Jun 9 18:35 CNAME -rw-r--r-- 1 mona admin 43 Jun 9 18:06 README.md drwxr-xr-x@ 7 mona staff 238 Feb 26 21:36 assets -rwxr-xr-x@ 1 mona staff 20060 Aug 23 2014 index.html Monas-MacBook-Pro:htdocs mona$ cat CNAME www.monajalal.com
When I browse to http://monajalal.github.io/ I get 404 error. Can you please tell what to do?
4 Answers
Seth Kroger
56,413 PointsLet's assume that you have the domain in question and added the proper IP addresses from the GitHub pages docs to you're domain with your registrar. It will take a while after adding the appropriate record for it to actually work. About an hour but sometimes more.
If you haven't set things up with your registrar yet, try removing CNAME and see if you can view the page.
Seth Kroger
56,413 PointsYou'll need to pay for the domain from a domain registrar first if you haven't done so. Then you'll need to set up an ALAIS/ANAME/A record for the domain to point to your GitHub pages site. Which one you use depends on what your registrar supports.
https://help.github.com/articles/setting-up-an-apex-domain/ goes through the process and https://help.github.com/articles/using-a-custom-domain-with-github-pages/ gives you more options.
Mona Jalal
4,302 PointsThanks for the hint, it worked but how can I make it so if I browse to monajalal.com it works too using CNAME?