Hello Everyone,
We all use many URLs on a daily basis. Sometimes we type them, sometimes we are just redirected to one URL by another. I have faced an interview someone asks me the difference between URI and URL. I have google it but till now I didn't get the exact answer. Anyone explain to me the syntax of both.
Ankit DixitPosted Oct 15, 2019, 2:07 AM
URI = Uninform Resource Identifier
URL = Uniform Resource Locator
The difference between the two is that a URI is basically a name, its a representation of an entity of some kind of resource somewhere
Whereas a URL specifies where that resource can be http://found.so a URL is a URI but a URI is not a URL
URI isn’t going you to show where a resource can be found but URL does.
E.g
http://public://my_life.jpg -----> URI
http://sites/default/files/my_life.jpg 2 -----> URL
URI is pointing to a location on the server that is publically accessible
URL is also pointing to a location but it may more, like what protocol was using in order to access the file.
Gowtham RamarPosted Oct 11, 2019, 2:31 AM
Uniform Resource Identifier =( Uniform Resource Name + Uniform Resource Location )
URN: