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 trialAmanda Cox
3,213 PointsDisplaying HTML in browser
I have a problem that I keep running into when I make my own projects.
When I don't have my HTML in a folder, it displays as it should in the browser.
However, when I put in in a folder, when I open it in the browser, it says "Index of/ Name Last Modified Size Description" and offers a link for my to click on the HTML file, and THEN it displays as it should.
This is kind of hard to explain, if there is any way I can post a screenshot of this please let me know.
Thanks!!
1 Answer
Steven Parker
231,269 PointsBy default, a web server delivers a default file from (typically "index.html") the root folder when someone makes a connection that does not specify a file. To make it display a file from a different folder, you would have to set that up in the server's configuration file.
Or, you could just open the file directly. For instance, if your "index.html" file were moved to a folder named "myfolder", you could open it at a URL like this http://my.server.com/myfolder/index.html
Jamie Reardon
Treehouse Project ReviewerJamie Reardon
Treehouse Project ReviewerWhat is the file name?