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 Going Further with HTML Root-relative Paths

Cameron Scully
Cameron Scully
2,919 Points

Does every site come with index.html as the default "/" or relative-root destination?

is the C: Drive considered the '/' or relative root destination every time when the files are locally stored? Can this be changed?

3 Answers

Dave StSomeWhere
Dave StSomeWhere
19,870 Points

It is a web server feature.

Apache is a common web server - the A in XAMPP, LAMP, MAMP and WAMP. Also used in the inexpensive hosting services.

There are various ways to change the settings for apache servers and probably similar configuration settings for other servers.

The c: drive is a windows thing and is something for your local desktop only (maybe IIS also).

The root/document directory is also configured by web server and some common names are - www, html, public_html, htdocs.

It would probably be worth your while to install and investigate running a local server for development. Often referred to as an AMP stack (A for Apache, M for MySQL and P for PHP). So, depending on your OS try doing a search for how to install WAMP - W for windows, MAMP - M for MAC, LAMP - L for linux or XAMPP - which can be run on Windows/Mac or Linux.

Hope that helps

Cameron Scully
Cameron Scully
2,919 Points

The M in AMP..... whats the feature its designed to run?

Cameron Scully
Cameron Scully
2,919 Points

and thanks, that answered a lot of questions for me! I kind of get hasty when it comes to questions before the end of the video (specifically the part in which I asked about local hard drive file paths) so I apologize for that bit!

Dave StSomeWhere
Dave StSomeWhere
19,870 Points

No need to apologize - good question - that why it's worth it to install yourself and start playing with it - and best of all it's free :+1: