What is a URL?
URL (Uniform Resource Locator) refers to the Uniform Resource Locator, which is an identification method used to completely describe the addresses of web pages and other resources on the Internet. It is also called a "website address".
Note: All resources on the Internet have a unique URL address. We can access the resource by entering the URL in the address bar.
Composition of URL
1. Protocol part
Such as HTTP protocol, that is, Hypertext Transfer Protocol, which supports simple request and response sessions , For Web servers, the most commonly used protocol is HTTP.
Note: In addition to HTTP protocol, there are also File, Ftp protocols, etc.
2. Server domain name or IP address part
Web applications run on the Web server, and the IP address refers to the address of the server in the network, but now it is used by basically all websites are all domain names assigned by the dns domain name system.
3. Port number
The port is the channel used by the server for internal and external communication. When the user accesses the server, he must access it from the required port to open the web page normally.
4. Path
Generally, all resources of a web page are not only saved in the same level directory.
Summary: URL is composed of protocol, domain name or IP, port number, and path.
The above is the detailed content of what does url mean. For more information, please follow other related articles on the PHP Chinese website!