URI vs URL: The real difference between the two
Blog post from SuperTokens
In the complex realm of web development, the terms URL, URI, and URN are often used interchangeably, leading to confusion. A URL (Uniform Resource Locator) serves as a guide to locating specific resources on the internet, much like an address helps find a home, and consists of components such as protocol, domain name, path, query parameters, and fragment. A URI (Uniform Resource Identifier) is a broader concept that includes both URLs and URNs, functioning as a digital fingerprint to uniquely identify resources on the internet. URNs (Uniform Resource Names) are a subset of URIs providing persistent, location-independent identifiers for resources, remaining constant even if the resource's location changes, making them particularly useful for citation and referencing over time. Although interconnected, URLs, URIs, and URNs have distinct roles in identifying and locating web resources.