DEV Community

Discussion on: What Is The Difference Between A URI And A URL?

Collapse
 
anduser96 profile image
Andrei Gatej

You could also say that the URL is that part of the URI that never changes, right?
Example:
example.com/Project/users/1
example.com/Project/posts
In this case, the URL is “www.example.com/Project”.
Correct me if I’m wrong!
By the way, nice article!

Collapse
 
bgadrian profile image
Adrian B.G.

They are both URIs but not URLs, because you do not know where to find them. To be a locator I think you need to specify where I can find it, in this case it should have a protocol.

Collapse
 
anduser96 profile image
Andrei Gatej

Hmm, that makes sense. So my affirmation would be valid if I added the protocol to both of them?