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

HTML

Problem With Website Loading

Hi, I am working on How to make a Website Html course and when I launch my workspace preview it goes to a list of links ( Index.html, about.html, css/, img/,normalize.css,) instead of going directly to the page. Also on my preview page when I switch to my about page and then back to my homepage, the homepage doesn't load instead it comes up with a 404 Not found page error. Does anyone know whats going on?

Thanks

2 Answers

Hey!

A website automatically directs the user to the file named 'index.html'. For example, if you have many files, such as 'about.html contact.html index.html', when you go to the domain 'index.html' will be the first site loaded up, and is often referred to as the 'landing page'.

I believe you have perhaps misspelled your file name for 'index.html'. Make sure it has a lower case 'i', etc. This would also be the reason why when attempting to go back to the homepage, it doesn't work - since the code is told to go to 'index.html', but the file is in fact something like 'INdjex.html'.

Thanks so much! That was it.

No problem! :))