Welcome to the Treehouse Community
The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

Katy Henning
520 PointsWhen I click the preview it just brings up a page that says "Index of /" then it will say "index.html below it
If I click on the index.html button then it shows my name!

Marcus Parsons
15,717 PointsHey Mitchell,
Anytime a directory listing pops up, it's because the server couldn't find an "index.*" file. Generally, servers start with "index.html" and then go through various extensions such as ".xhtml, .php, etc." It's what happened in this case, as Katy said.
2 Answers

Marcus Parsons
15,717 PointsHey Katy,
Make sure that the "index.html" file is exactly named like that. The server looks for a file named "index.html" and if it doesn't find it, that's when it brings up the directory listing.

Katy Henning
520 Pointsoh snap, I gotta start paying attention, I had it spelled "Index.html" with a capital "I" oops
Thank you

Marcus Parsons
15,717 PointsYou're welcome! If you want to go ahead and mark my answer as best answer, we can mark this as resolved! :)
Mitchell Springer
2,576 PointsMitchell Springer
2,576 PointsCopy and paste in your code from index.html. There may be something missing that is causing the error.