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

Is it doing a recursive lookup of the html file??

So if we have /file.html, and file.html is not in the actual root directory of the linux machine, are we telling the web server to search all subdirectories for file.html starting from / ???

1 Answer

Steven Parker
Steven Parker
243,228 Points

When you use a "root-relative" path (one that starts with,"/"), it's not the root of the machine filesystem you are referring to, but the configured root folder for the web server. For both security and maintenance purposes, this would not be the same as the filesystem root.

Also, web location references are not searched for, and must be located where specified, otherwise the server will respond with the famous "404" message ("not found").