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 trialFelix van Dijk
1,666 PointsPreview shows "Index of / " when I run my site.
Hello.
When I preview my site out of workspaces it does not launch the site, it opens the new window and shows "Index of / " instead of my site. What could this be as the code I wrote is like Nick's.
Hope you can help. Felix
3 Answers
Felix van Dijk
1,666 PointsHi Guys. Thanks for the feedback. Turns out it was very basic; my index.html filename was typed with a capital "I". Once corrected it was all good. Thanks
Philip Gales
15,193 PointsMost likely you need to move your index.html file up one so it is even with the other folders. If this is all within workspaces then take a snapshot by clicking the camera in the upper right and sharing that link with us.
Steven Parker
231,275 PointsThe server is not recognizing your page.
As an alternative, it is displaying the contents of top-level folder instead. Do you see index.html listed in the contents?
This might be happening because your code is in an unexpected location, as Philip suggested. It could also be that the file name you used is not one the server will use by default. Or, it could be something even simpler — perhaps you are creating the file for the first time and you simply forgot to save it before launching the preview.
Make sure your file is named correctly (you most likely would call it index.html), located in the top-level directory, has been saved with the menu or the control-S shortcut, and then re-launch the preview and refresh your browser.