| Please help improve this article or section by expanding it. Further information might be found on the talk page. (March 2008) |
In computing, a Uniform Resource Locator (URL) is a type of Uniform Resource Identifier (URI) that specifies where an identified resource is available and the mechanism for retrieving it. In popular usage and in many technical documents and verbal discussions it is often incorrectly used as a synonym for URI.[1] In popular language, a URL is also referred to as a Web address.
Contents |
The Uniform Resource Locator was created in 1990 by Tim Berners-Lee as part of the URI.[2] He regrets the format of the URL. Instead of being divided into the route to the server, separated by dots, and the file path, separated by slashes; he would have liked it to be one coherent hierarchical path.[3] For example, http://www.serverroute.com/path/to/file.html would look like http://com/serverroute/www/path/to/file.html.
Every URL is made up of some combination of the following: the scheme name (commonly called protocol), followed by a colon, then, depending on scheme, a hostname (alternatively, IP address), a port number, the pathname of the file to be fetched or the program to be run, then (for programs such as CGI scripts) a query string[4][5], and with HTML files, an anchor (optional) for where the page should start to be displayed.[6]
The combined syntax looks like:
resource_type://domain:port/filepathname?query_string#anchor
An absolute URL is one that points to the exact location of a file. It is unique, meaning that if two URLs are identical, they point to the same file.[7] An example is: http://wiki.xiaoyaozi.com/en//File:Raster_to_Vector_Mechanical_Example.jpg
A relative URL points to the location of a file from a point of reference. This reference is usually the directory beneath the file.[7] It is preceded by two dots (../directory_path/file.txt) for the directory above, one dot (./directory_path/file.txt) for the current directory or without the beginning slash (directory_path/file.txt), which is also the current directory.
In its current strict technical meaning, a URL is a URI that, “in addition to identifying a resource, [provides] a means of locating the resource by describing its primary access mechanism (e.g., its network ‘location’).”[8][9]
On the Internet, a hostname is a domain name assigned to a host computer. This is usually a combination of the host's local name with its parent domain's name. For example, "en.wikipedia.org" consists of a local hostname ("en") and the domain name "wikipedia.org". This kind of hostname is translated into an IP address via the local hosts file, or the Domain Name System (DNS) resolver. It is possible for a single host computer to have several hostnames; but generally the operating system of the host prefers to have one hostname that the host uses for itself.
Any domain name can also be a hostname, as long as the restrictions mentioned below are followed. So, for example, both "en.wikimedia.org" and "wikimedia.org" are hostnames because they both have IP addresses assigned to them. The domain name "pmtpa.wikimedia.org" is not a hostname since it does not have an IP address, but "rr.pmtpa.wikimedia.org" is a hostname. All hostnames are domain names, but not all domain names are hostnames.
|
|||||||||||||||||
stock | retire | vm
Why are we here?
All text is available under the terms of the GNU Free Documentation License
This page is cache of Wikipedia. History