Welcome to the Treehouse Community
The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.
Is a URI just a relative URL?
From this video it seems that a URI '/[resource]' is really just a relative URL, since a relative URL is really just another resource living on the server at a particular host address. It's like the host is an apartment building, and there are a bunch of resources that all have their specific address within the host. Both the relative URL and a URI are just different ways of saying the same thing, whereas absolute URLs are always different hosts. Am I on the right track?
Steven Parker221,070 Points
Originally, URI was a more generic term that included locators (URL), resource names (URN) and characteristics (URC).
Because of much confusion, and since it is no longer useful to strictly segment URIs into different types, the W3C issued a clarification document that says that it is now OK to use the terms URL and URI interchangeably (to mean URI). So they are the same thing now.
And an absolute URL would not necessarily be on a different host, it would just include the specific host.