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 How to Make a Website Creating HTML Content Build the Footer

William Albertson
William Albertson
5,210 Points

Whenever I preview my code from Workspaces it comes up as Index of/, please help me?

When I preview my workspaces it comes up as index of/ and gives me links to my img folder and to my main page? How do I fix it to just preview the page

1 Answer

Logan R
Logan R
22,989 Points

By default, all browsers load the file "Index.html" or "Index.php" first, and if no index is found, it will list the directories.

Change your main file's name to index.html and it should come up :)