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 HTML Basics Images, Text and Links Understanding File Paths

Preview button takes me to Index of/ instead of a true preview. It is throwing off my file paths. How do I correct it?

When I hit the preview button it takes me to the index instead of the preview. I have to click on the file to get a preview. This is throwing of my file path and giving me Not Found returns. Thank you for any suggestions.

2 Answers

Steven Parker
Steven Parker
231,269 Points

The preview will automatically display a file with the standard landing page name "index.html". If you have no file by that name, it will show a folder index instead. Rename the file you wish to preview as "index.html" to make it shown by default.

If that doesn't resolve your issue, make a snapshot of your workspace and post the link to it here.

If you have a html file named article.html just add /article.html to link url on preview. See below

http://port-80-u3bwaxs25z.treehouse-app.com/article.html