url refers to the unified resource locator, which is also the address of a resource on the Internet. On the Internet, a file will correspond to a URL, and the server will process it according to the source code of the file.
What is the structure of url
The first part of http transmission protocol, the so-called protocol refers to how the browser handles the opening file, this protocol is mainly used to access the network.
The second part is the name of the file on the server. Generally, there will be a colon and port number after the server name, and the path part contains the hierarchical structure.
Classification of url
1. Relative URL
The path relationship between the path of the file and other files, Used to indicate the location of a file. If it is in the same directory, the URL of this file is the name of the current file. The relative path URL is relatively short.
2. Absolute URL
The absolute URL will display the full path of the file, usually containing a domain name in front.
URL case
URLs are generally case-sensitive, but when the server receives requests with different cases, the server's reply is the same.
The above is a complete introduction to what url means. If you want to know more about Html5 tutorial, please pay attention to the php Chinese website.
The above is the detailed content of what does url mean. For more information, please follow other related articles on the PHP Chinese website!