Bummer! You have been redirected as the page you requested could not be found.

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

I don't understand why I can't find my index.html file.

I try to pass the test but it says "can't find index.html file which is necessary for the project to work".

Steven Parker
Steven Parker
242,770 Points

To facilitate an accurate analysis, make a snapshot of your workspace and post the link to it here.

James Privett
James Privett
7,634 Points

Hey Liel,

Are you attempting to load your index.html file to a web server? If so, index.html is and should always be loaded to the root of the web server. On a Linux host, it will most likely be /var/www/html/.

Let me know if you have any questions.

-James

1 Answer

Steven Parker
Steven Parker
242,770 Points

It sounds like you may have your index.html file located in a sub-folder. The preview function will try to find a file by that name in the main folder, and will list the contents if it can't find it.

Make sure your index.html is in the main area or move it there and refresh your preview.