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

'Index Of' Question Error

In my html code, when I try to preview my code, something comes up, saying 'Index Of', and below it are all my pages. I do not want this and have been wondering what this was for a very long time. If someone could please help me figure what this is, it would be wonderful!

Thanks,

-Tianerad 999

It sounds like you are missing an index file in your root directory. If this is in a workspace can you post a snapshot?

2 Answers

Steven Parker
Steven Parker
229,967 Points

For many web servers, including the one built into workspaces, displaying the folder contents is the normal behavior when the default landing page cannot be found in the root (main) folder.

A typical name for the landing page is "index.html". Check if that file is missing, misspelled or has been moved to a sub-folder.

That's the problem? Huh...I thought you could just name it anything and put .html. Thanks for the tip!