Tech moves fast! Stay ahead of the curve with Techopedia!
Join nearly 200,000 subscribers who receive actionable tech insights from Techopedia.
A Uniform Resource Locator (URL), otherwise known as a Universal Resource Locator, is the address of a resource on the Internet and the protocol used to access it.
It indicates the location of a web resource like a street address indicates where a person lives physically — because of this, an URL is often referred to as: “web address”.
A URL contains the following information:
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.
Users browsing the Internet use URLs and use them by typing or copy-pasting them in their web browser’s address bar.
Also, every time you click on a hyperlink inside an application (email, web page, word document), you are effectively being redirected to that URL.
All URLs are presented in the following order:
So, the format will look like this:
This looks more complex than it actually 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, such as Google.com.
Given this, the following URLs are much simpler 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.
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. A different network port could still be specified to make the connection to a particular destination.
Finally, the following URL demonstrates a fragment identifier, more commonly known as a query string:
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 or dynamic pages like a search engine.
A broad range of other fragments is also used to specify the details of a destination, such as the # (hashtag) that directs the user to a specific portion of a page.
For example, the #Examples fragment in this URL redirect the user to the “Examples” section of the Fragment Identifier page in the Wikipedia:
URLs can also be shortened by activating a shortening service that uses a redirect on a short-named domain. This is particularly useful in case of lengthy URLs containing many queries.
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.