A Uniform Resource Locator (URL) is a unique identification for a resource located on the Internet. Every proper URL takes the source, page, site, document, picture, and video to another source. URLs include numerous components like protocol and domain name, showing a web browser where and how a resource might be collected. The URL contains the protocol name for help and the resource name.
The initial component of a URL defines which protocol the direct access media is to utilize. The second portion identifies the IP address or domain name – and perhaps the subdomain – where the resource is located.URL protocols include the web resources HTTP (Hypertext Transfer Protocol) and HTTPS (HTTP Secure), mail for email addresses, FTP for files on a file transmission protocol (FTP) server, and then telnet to connect remote machines. Most URL protocols contain a colon and two forward slashes; "mail to" merely follows a colon. Only ASCII character set URLs can be communicated across the Internet.
Because URLs are frequently non-ASCII, the URL must be transformed into a suitable ASCII format. URL encoding substitutes unsafe ASCII characters for "percent" followed by two digits. The URL consists of various components like the protocol or scheme, hostname or domain name, port name, path, query, parameters, and fragment. The protocol or procedure is used for internet access. Protocols are HTTP, HTTPS and ftps, mailto as well as files. The resource can be contacted via the name of the domain name system (DNS).
Host name or domain name is the only reference that a webpage represents. The name of the port is not usually displayed in URLs but required. The default port for web servers is always a colon, but there are various alternatives. Path refers to a web server file or location while a query is found at the dynamic pages URL. The query consists of an interrogatory mark and parameters.
Parameters are Information Pieces in a URL query string. Ampersands(&) can separate multiple parameters. A fragment is an internal page reference referring to a segment of the webpage. It will show at the end of a URL and will begin with a hashtag (#). In addition, URLs can be forwarded or redirected to another URL in numerous ways, the most popular being 301 (permanent) and 302 (temporary).
Redirection to the URL ensures that a user does not end on a 404 page or replace an old or obsolete page with a new page with another URL. URLs can also be shortened by enabling a shorter service using a short-named domain redirector although URLs cannot include spaces. This is especially beneficial for long URLs that contain several queries.