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

Development Tools HTTP Basics GET and POST Requests in a Browser Using Anchors for GET Requests

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?

1 Answer

Steven Parker
Steven Parker
230,274 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.

Thanks Steven.