Uniform Resource Locator (URL)
Definition - What does Uniform Resource Locator (URL) mean?
A uniform resource locator (URL) is the address of a resource on the Internet. A URL indicates the location of a resource as well as the protocol used to access it.
A URL contains the following information:
- The protocol used to a access the resource
- The the location of the server (whether by IP address or domain name)
- The port number on the server (optional)
- The location of the resource in the directory structure of the server
- A fragment identifier (optional)
Also known as a Universal Resource Locator (URL) or Web address. A URL is a type of uniform resource identifier (URI). In common practice, the term URI isn't used, or is used synonymously with URL, even though this is technically incorrect.
Techopedia explains Uniform Resource Locator (URL)
Tim Berners-Lee and the Internet Engineering Task Force working group is credited with developing the URL in 1994. It is formally specified in RFC 1738.
All URLs are presented in the following order:
- Scheme name
- Colon and two slashes
- Location of the server
- The port (optional) and the location of the resource on the server
- Fragment identifier (optional)
So, the format will look like this:
This looks more complex that it is. The most common schemes (protocols) are HTTP and HTTPS, which any WWW user will recognize. The location of the server is generally a domain name. Given this, the following URLs are much more simple to understand:
Both these URLs indicate that there is a file named default.htm on a server with the address of "google.com". One uses regular HTTP, while the other uses a secure version of this scheme.
Two common elements of confusion about URLs:
- The "www" is not actually part of the technical protocol. Websites just started using this to indicate the user is using the World Wide Web. This is why if you go to http://google.com, it redirects to http://www.google.com.
- Most users access the Internet via a Web browser, which inserts port 80 on HTTP connections behind the scenes. This is why if you go to http://www.google.com:80, you will see the same website as if there were no port number.
Finally, the following URL demonstrates a fragment identifier, more commonly known as a querystring:
This is saying that to use the HTTP protocol to send a request to the website at google.com (over port 80) and to ask for "some-page" and send in the search variable "hello". This is why you'll sometimes see an extremely long URL as many variables are being sent to the Web server in more interactive Web applications.