这个维基百科上有翻译。URL:Uniform Resource Locator,统一资源定位符
URI:Uniform Resource Identifier,统一资源标志符
URL 是一种比较统一的带参数指向某个地址的格式。格式为:[协议类型]://[访问资源需要的凭证信息]@[服务器地址]:[端口号]/[资源层级UNIX文件路径][文件名]?[查詢]#[片段ID]
比如这个问题,URL 是
https://www.zhihu.com/question/324392663
https 是协议,使用默认账户访问,端口是 https 默认的 443,路径是 /question/324392663。
如果要寻找精准定义,我们可以翻 RFC。URL 的 RFC 是 rfc1738 。
它自己介绍道The specification is derived from concepts introduced by the World-Wide Web global information initiative, whose use of such objects dates from 1990 and is described in "Universal Resource Identifiers in WWW", RFC 1630. The specification of URLs is designed to meet the requirements laid out in "Functional Requirements for Internet Resource Locators"
在 RFC 1630 中有对 URL,URI,URN 的区分如下:URIs
This document defines a way to en