{"id":58336,"date":"2022-07-05T13:03:11","date_gmt":"2022-07-05T13:03:11","guid":{"rendered":"\/tutorials\/?p=58336"},"modified":"2024-07-31T13:19:24","modified_gmt":"2024-07-31T13:19:24","slug":"what-is-a-url-examples-structure-and-more","status":"publish","type":"post","link":"\/my\/tutorials\/what-is-a-url","title":{"rendered":"What Is a URL: Examples, Structure, and More&nbsp;"},"content":{"rendered":"<p>A URL (uniform resource locator) it&rsquo;s a type of uniform resource identifier (URI) that provides a way to access information from remote computers, like a web server and cloud storage. <\/p><p>URLs play a vital role in web navigation and online communication by providing a structured way to locate and access various web resources and hyperlinks.<\/p><p>It contains various elements, including the network communication protocol, a subdomain, a domain name, and its extension.<\/p><p>Luckily, site owners can modify their URLs. A well-crafted URL can be a powerful tool to improve user experience, resulting in better search engine optimization (SEO) performance. Therefore, optimizing URLs can be a great way to boost your website&rsquo;s rankings on search engine result pages (SERPs).<\/p><p>This article covers everything you need to know about what is a URL, from the definition to examples, its general structure, and how to custom-create URLs.<\/p><p class=\"has-text-align-center\"><a href=\"https:\/\/assets.hostinger.com\/content\/Web-Development-Glossary-for-Beginners.pdf\" target=\"_blank\" rel=\"noopener\">Download glossary for web beginners<\/a><\/p><p>\n\n\n\n\n\n<div class=\"protip\">\n                    <h2 class=\"featured-snippet title\">What Is a URL?<\/h2>\n                    <p>A URL, short for a uniform resource locator serves as a web address that guides users to specific resources on the internet, including domain names, paths, and protocol identifiers. <\/p>\n                <\/div>\n\n\n\n<\/p><h2 class=\"wp-block-heading\" id=\"h-what-is-an-example-of-a-url-address\">What Is an Example of a URL Address<\/h2><p>Hostinger&rsquo;s complete URL is<code data-enlighter-language=\"generic\" class=\"EnlighterJSRAW\"> https:\/\/www.hostinger.com\/<\/code> and entering it in a browser&rsquo;s address bar directs users to our website. The same rule applies to <code data-enlighter-language=\"generic\" class=\"EnlighterJSRAW\">https:\/\/www.microsoft.com\/<\/code> and <code data-enlighter-language=\"generic\" class=\"EnlighterJSRAW\">https:\/\/www.linux.org\/<\/code>.<\/p><p>That said, URLs can get more specific.<\/p><p>For example, the <code data-enlighter-language=\"generic\" class=\"EnlighterJSRAW\">\/tutorials\/<\/code> URL leads users to our <strong>Tutorials<\/strong> page, and <code data-enlighter-language=\"generic\" class=\"EnlighterJSRAW\">\/tutorials\/how-to-make-a-website<\/code> is a full URL for our <strong>How to Make a Website<\/strong> article on <strong>Hostinger Tutorials<\/strong>.<\/p><p>URLs can also send users to a particular section on a web page.<\/p><pre class=\"wp-block-preformatted\">\/tutorials\/how-to-make-a-website#6_Optimize_Your_Website_for_SEO_and_Conversions<\/pre><p>The above URL, for example, sends users to the tip number 6 in the <strong>How to Make a Website<\/strong> article.<\/p><p>Lastly, every uploaded image has its own URL, enabling users to access it directly. The following URL leads to the featured image of our <strong>How to Make a Website<\/strong> article<\/p><pre class=\"wp-block-preformatted\">\/tutorials\/wp-content\/uploads\/sites\/2\/2021\/08\/how-to-make-a-website-1.png.<\/pre><h2 class=\"wp-block-heading\" id=\"h-what-is-the-structure-of-a-url\">What Is the Structure of a URL<\/h2><div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><a href=\"\/my\/tutorials\/wp-content\/uploads\/sites\/2\/2022\/07\/the-structure-of-a-url.png\"><img decoding=\"async\" width=\"1024\" height=\"431\" src=\"\/tutorials\/wp-content\/uploads\/sites\/2\/2022\/07\/the-structure-of-a-url-1024x431.png\" alt=\"the structure of a url\" class=\"wp-image-58337\" srcset=\"https:\/\/www.hostinger.com\/my\/tutorials\/wp-content\/uploads\/sites\/45\/2022\/07\/the-structure-of-a-url-1024x431.png 1024w, https:\/\/www.hostinger.com\/my\/tutorials\/wp-content\/uploads\/sites\/45\/2022\/07\/the-structure-of-a-url-300x126.png 300w, https:\/\/www.hostinger.com\/my\/tutorials\/wp-content\/uploads\/sites\/45\/2022\/07\/the-structure-of-a-url-150x63.png 150w, https:\/\/www.hostinger.com\/my\/tutorials\/wp-content\/uploads\/sites\/45\/2022\/07\/the-structure-of-a-url-768x324.png 768w, https:\/\/www.hostinger.com\/my\/tutorials\/wp-content\/uploads\/sites\/45\/2022\/07\/the-structure-of-a-url.png 1068w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure><\/div><p>As you can see from the image, uniform resource locator (URL) contains multiple parts. To help you better understand, let&rsquo;s dive deeper into the structure of a URL.<\/p><h3 class=\"wp-block-heading\" id=\"h-http-or-https\">HTTP or HTTPS<\/h3><div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><a href=\"\/my\/tutorials\/wp-content\/uploads\/sites\/2\/2022\/07\/hostinger.com-uses-the-https-protocol.png\"><img decoding=\"async\" width=\"750\" height=\"50\" src=\"\/tutorials\/wp-content\/uploads\/sites\/2\/2022\/07\/hostinger.com-uses-the-https-protocol.png\" alt=\"hostinger.com uses the https protocol\" class=\"wp-image-58338\" srcset=\"https:\/\/www.hostinger.com\/my\/tutorials\/wp-content\/uploads\/sites\/45\/2022\/07\/hostinger.com-uses-the-https-protocol.png 750w, https:\/\/www.hostinger.com\/my\/tutorials\/wp-content\/uploads\/sites\/45\/2022\/07\/hostinger.com-uses-the-https-protocol-300x20.png 300w, https:\/\/www.hostinger.com\/my\/tutorials\/wp-content\/uploads\/sites\/45\/2022\/07\/hostinger.com-uses-the-https-protocol-150x10.png 150w\" sizes=\"(max-width: 750px) 100vw, 750px\" \/><\/a><\/figure><\/div><p><a href=\"\/my\/tutorials\/http-vs-https\">HTTP (Hypertext Transfer Protocol) and HTTPS (Hypertext Transfer Protocol Secure)<\/a> are protocols for network communication between web servers and browsers. They transmit messages, retrieve information through the domain name system (DNS), and return it to the browser.<\/p><p>The difference between HTTP and HTTPS is that the latter encrypts the data transmission process. This security protocol protects a website better and is an essential factor in improving ranking on search results.<\/p><p>Another difference is that HTTPS uses the Transmission Control Protocol\/Internet Protocol (TCP\/IP) port number 443 encrypted by Transport Layer Security (TLS). Meanwhile, an HTTP URL uses TCP\/IP port number 80.<\/p><p>\n\n\n<div><p class=\"important\"><strong>Important!<\/strong> Web browsers can also process other protocols, including FTP and mailto. The former allows file sharing between different web hosts, either local or remote. The latter directs users to a specific email address.<\/p><\/div>\n\n\n\n<\/p><h3 class=\"wp-block-heading\" id=\"h-www-subdomain\">www (Subdomain)<\/h3><div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><a href=\"\/my\/tutorials\/wp-content\/uploads\/sites\/2\/2022\/07\/hostinger.com-uses-the-www-subdomain.png\"><img decoding=\"async\" width=\"750\" height=\"50\" src=\"\/tutorials\/wp-content\/uploads\/sites\/2\/2022\/07\/hostinger.com-uses-the-www-subdomain.png\" alt=\"hostinger.com uses the www subdomain\" class=\"wp-image-58339\" srcset=\"https:\/\/www.hostinger.com\/my\/tutorials\/wp-content\/uploads\/sites\/45\/2022\/07\/hostinger.com-uses-the-www-subdomain.png 750w, https:\/\/www.hostinger.com\/my\/tutorials\/wp-content\/uploads\/sites\/45\/2022\/07\/hostinger.com-uses-the-www-subdomain-300x20.png 300w, https:\/\/www.hostinger.com\/my\/tutorials\/wp-content\/uploads\/sites\/45\/2022\/07\/hostinger.com-uses-the-www-subdomain-150x10.png 150w\" sizes=\"(max-width: 750px) 100vw, 750px\" \/><\/a><\/figure><\/div><p>A <a href=\"\/my\/tutorials\/what-are-subdomains\">subdomain<\/a> consists of any words or phrases that come before a URL&rsquo;s first dot. Referring to the world wide web, <strong>www<\/strong> is the most common type. It indicates that a website is accessible through the internet and uses HTTP to communicate.<\/p><p>Furthermore, site owners can use any word as a subdomain for website organization purposes as it points to a specific directory from the primary domain. Some of the most popular options are &ldquo;blog&rdquo; and &ldquo;news.&rdquo;<\/p><div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full is-resized\"><a href=\"\/my\/tutorials\/wp-content\/uploads\/sites\/2\/2022\/07\/hostinger_s-knowledge-base-page-uses-the-support-subdomain.png\"><img decoding=\"async\" width=\"750\" height=\"50\" src=\"\/tutorials\/wp-content\/uploads\/sites\/2\/2022\/07\/hostinger_s-knowledge-base-page-uses-the-support-subdomain.png\" alt=\"Hostinger's knowledge base page uses the support subdomain\" class=\"wp-image-58340\" style=\"width:750px;height:50px\" srcset=\"https:\/\/www.hostinger.com\/my\/tutorials\/wp-content\/uploads\/sites\/45\/2022\/07\/hostinger_s-knowledge-base-page-uses-the-support-subdomain.png 750w, https:\/\/www.hostinger.com\/my\/tutorials\/wp-content\/uploads\/sites\/45\/2022\/07\/hostinger_s-knowledge-base-page-uses-the-support-subdomain-300x20.png 300w, https:\/\/www.hostinger.com\/my\/tutorials\/wp-content\/uploads\/sites\/45\/2022\/07\/hostinger_s-knowledge-base-page-uses-the-support-subdomain-150x10.png 150w\" sizes=\"(max-width: 750px) 100vw, 750px\" \/><\/a><\/figure><\/div><p>For example, while <code data-enlighter-language=\"generic\" class=\"EnlighterJSRAW\">hostinger.com<\/code> uses www, the subdomain for our <strong>Knowledge Base<\/strong> page is &ldquo;support.&rdquo; Hence, the <code data-enlighter-language=\"generic\" class=\"EnlighterJSRAW\">support.hostinger.com<\/code> URL.<\/p><h3 class=\"wp-block-heading\" id=\"h-domain-name\">Domain Name<\/h3><div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><a href=\"\/my\/tutorials\/wp-content\/uploads\/sites\/2\/2022\/07\/hostinger.com-is-a-domain-name-or-website-address-for-hostinger_s-website.png\"><img decoding=\"async\" width=\"750\" height=\"50\" src=\"\/tutorials\/wp-content\/uploads\/sites\/2\/2022\/07\/hostinger.com-is-a-domain-name-or-website-address-for-hostinger_s-website.png\" alt=\"hostinger.com is a domain name or a website address for Hostinger's website\" class=\"wp-image-58341\" srcset=\"https:\/\/www.hostinger.com\/my\/tutorials\/wp-content\/uploads\/sites\/45\/2022\/07\/hostinger.com-is-a-domain-name-or-website-address-for-hostinger_s-website.png 750w, https:\/\/www.hostinger.com\/my\/tutorials\/wp-content\/uploads\/sites\/45\/2022\/07\/hostinger.com-is-a-domain-name-or-website-address-for-hostinger_s-website-300x20.png 300w, https:\/\/www.hostinger.com\/my\/tutorials\/wp-content\/uploads\/sites\/45\/2022\/07\/hostinger.com-is-a-domain-name-or-website-address-for-hostinger_s-website-150x10.png 150w\" sizes=\"(max-width: 750px) 100vw, 750px\" \/><\/a><\/figure><\/div><p>A <a href=\"\/my\/tutorials\/what-is-a-domain-name\">domain name is<\/a> what users type into their browser&rsquo;s address bar to reach a website. It consists of a site name and an extension, for example, <code data-enlighter-language=\"generic\" class=\"EnlighterJSRAW\">hostinger.com.<\/code><\/p><p>Every name is unique, and they represent their corresponding <a href=\"\/my\/tutorials\/what-is-ip-address\">IP addresses<\/a>. This unique IP address points to the website&rsquo;s server. In other words, it helps users access websites easily.<\/p><h3 class=\"wp-block-heading\" id=\"h-domain-extension\">Domain Extension<\/h3><div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><a href=\"\/my\/tutorials\/wp-content\/uploads\/sites\/2\/2022\/07\/hostinger-uses-the-.com-domain-extension.png\"><img decoding=\"async\" width=\"750\" height=\"50\" src=\"\/tutorials\/wp-content\/uploads\/sites\/2\/2022\/07\/hostinger-uses-the-.com-domain-extension.png\" alt=\"Hostinger uses the .com domain extension\" class=\"wp-image-58342\" srcset=\"https:\/\/www.hostinger.com\/my\/tutorials\/wp-content\/uploads\/sites\/45\/2022\/07\/hostinger-uses-the-.com-domain-extension.png 750w, https:\/\/www.hostinger.com\/my\/tutorials\/wp-content\/uploads\/sites\/45\/2022\/07\/hostinger-uses-the-.com-domain-extension-300x20.png 300w, https:\/\/www.hostinger.com\/my\/tutorials\/wp-content\/uploads\/sites\/45\/2022\/07\/hostinger-uses-the-.com-domain-extension-150x10.png 150w\" sizes=\"(max-width: 750px) 100vw, 750px\" \/><\/a><\/figure><\/div><p>Also called a <a href=\"\/my\/tutorials\/what-is-tld\">top-level domain (TLD)<\/a>, is the bit following a website name. Used for around <a href=\"https:\/\/w3techs.com\/technologies\/overview\/top_level_domain\" target=\"_blank\" rel=\"noopener\">53%<\/a> of all websites, <strong>.com <\/strong>is the most popular extension.<\/p><p>Here are types of TLD extensions to consider using:<\/p><ul class=\"wp-block-list\">\n<li><strong>Generic TLD (gTLD)<\/strong>. This category includes most of the popular extensions, including <strong>.com<\/strong>, <strong>.org<\/strong>, <strong>.net<\/strong>.<\/li>\n\n\n\n<li><strong>Country Code TLD (ccTLD)<\/strong>. As the name suggests, this TLD indicates a country, a territory, or a geographical area. ccTLD consists of two letters based on the international country codes, such as <strong><a href=\"\/my\/tld\/mx-domain\">.mx<\/a><\/strong>, <strong><a href=\"\/my\/tld\/in-domain\">.in<\/a><\/strong>, or <strong><a href=\"\/my\/tld\/at-domain\">.at<\/a><\/strong>.<\/li>\n\n\n\n<li><strong>Sponsored TLD (sTLD)<\/strong>. This type of extension is sponsored and used for specific organizations. For example, Tralliance Registry Management Company, LLC sponsors <strong>.travel<\/strong>, and DotAsia Organization Ltd. sponsors <a href=\"\/my\/tld\/asia-domain\"><strong>.asia<\/strong> domain extension<\/a>.<\/li>\n\n\n\n<li><strong>New gTLD (nTLD)<\/strong>. It&rsquo;s a <a href=\"\/my\/tld\">new generation of domain extensions<\/a>. Basically, any TLD launched after 12 January 2012 are new gTLD, including <strong>.online<\/strong>, <strong>.store<\/strong>, and <strong>.tech<\/strong>.<\/li>\n<\/ul><h3 class=\"wp-block-heading\" id=\"h-path-to-the-resource\">Path to the Resource<\/h3><div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><a href=\"\/my\/tutorials\/wp-content\/uploads\/sites\/2\/2022\/07\/how-path-to-resource-may-look-like-in-a-URL.png\"><img decoding=\"async\" width=\"775\" height=\"50\" src=\"\/tutorials\/wp-content\/uploads\/sites\/2\/2022\/07\/how-path-to-resource-may-look-like-in-a-URL.png\" alt=\"how path to resource may look like in a URL\" class=\"wp-image-58343\" srcset=\"https:\/\/www.hostinger.com\/my\/tutorials\/wp-content\/uploads\/sites\/45\/2022\/07\/how-path-to-resource-may-look-like-in-a-URL.png 775w, https:\/\/www.hostinger.com\/my\/tutorials\/wp-content\/uploads\/sites\/45\/2022\/07\/how-path-to-resource-may-look-like-in-a-URL-300x19.png 300w, https:\/\/www.hostinger.com\/my\/tutorials\/wp-content\/uploads\/sites\/45\/2022\/07\/how-path-to-resource-may-look-like-in-a-URL-150x10.png 150w, https:\/\/www.hostinger.com\/my\/tutorials\/wp-content\/uploads\/sites\/45\/2022\/07\/how-path-to-resource-may-look-like-in-a-URL-768x50.png 768w\" sizes=\"(max-width: 775px) 100vw, 775px\" \/><\/a><\/figure><\/div><p>A path to the resource is the part to the right of the TLD. It&rsquo;s often referred to as the folder structure of the website.<\/p><p>A path to the resource gives extra information to a web server, enabling it to lead users to a specific location. A series of paths to resources may point to a specific page, post, or file.<\/p><p>A URL can have more than one path to resources. When that happens, the forward-slash sign (\/) will separate each of them. The more paths to resources a URL contains, the more specific the location is.<\/p><h3 class=\"wp-block-heading\" id=\"h-parameters\">Parameters<\/h3><div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><a href=\"\/my\/tutorials\/wp-content\/uploads\/sites\/2\/2022\/07\/parameters-can-appear-in-a-url-as-a-result-of-a-google-search.png\"><img decoding=\"async\" width=\"777\" height=\"50\" src=\"\/tutorials\/wp-content\/uploads\/sites\/2\/2022\/07\/parameters-can-appear-in-a-url-as-a-result-of-a-google-search.png\" alt=\"parameters can appear in a url as a result of a Google search\" class=\"wp-image-58344\" srcset=\"https:\/\/www.hostinger.com\/my\/tutorials\/wp-content\/uploads\/sites\/45\/2022\/07\/parameters-can-appear-in-a-url-as-a-result-of-a-google-search.png 777w, https:\/\/www.hostinger.com\/my\/tutorials\/wp-content\/uploads\/sites\/45\/2022\/07\/parameters-can-appear-in-a-url-as-a-result-of-a-google-search-300x19.png 300w, https:\/\/www.hostinger.com\/my\/tutorials\/wp-content\/uploads\/sites\/45\/2022\/07\/parameters-can-appear-in-a-url-as-a-result-of-a-google-search-150x10.png 150w, https:\/\/www.hostinger.com\/my\/tutorials\/wp-content\/uploads\/sites\/45\/2022\/07\/parameters-can-appear-in-a-url-as-a-result-of-a-google-search-768x49.png 768w\" sizes=\"(max-width: 777px) 100vw, 777px\" \/><\/a><\/figure><\/div><p>Parameters are query strings or URL variables. They&rsquo;re the portion of a URL following a question mark.<\/p><p>Parameters contain keys and values separated by the equal sign (=). Furthermore, a URL can have multiple variables. In that case, the ampersand symbol (&amp;) will separate each.<\/p><p>In terms of parameter use cases, here are some of the most common ones:<\/p><ul class=\"wp-block-list\">\n<li><strong>Translating.<\/strong> Having a country code in the query string translates a web page to the associated country&rsquo;s language.<\/li>\n\n\n\n<li><strong>Searching.<\/strong> The searching parameter provides search results from a website&rsquo;s internal search engine.<\/li>\n\n\n\n<li><strong>Filtering.<\/strong> To separate distinct fields, such as topic, color, price range, and region, site owners can use the filtering parameter.<\/li>\n\n\n\n<li><strong>Paginating.<\/strong> This parameter is especially useful for eCommerce websites, enabling site owners to sort content.<\/li>\n\n\n\n<li><strong>Tracking.<\/strong> Usually contains the <a href=\"https:\/\/support.google.com\/urchin\/answer\/28307\" target=\"_blank\" rel=\"noopener\">Urchin Tracking Module<\/a> codes to track traffic from ads and marketing campaigns.<\/li>\n<\/ul><p>\n\n\n<div class=\"protip\">\n                    <h4 class=\"title\">Suggested Reading<\/h4>\n                    <p>To better understand the web structure, check out our guide on <a href=\"\/my\/tutorials\/what-is-website\">what a website is<\/a>.<\/p>\n                <\/div>\n\n\n\n<\/p><h2 class=\"wp-block-heading\" id=\"h-what-is-a-url-syntax\">What Is a URL Syntax<\/h2><p>Syntax refers to a set of rules. In the case of a URL syntax, it sets which component and symbol are allowed in a URL. Here&rsquo;s what a URL&rsquo;s general syntax looks like:<\/p><p><code class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">http:\/\/subdomain.domain-name.domain-extension\/path-to-resource?parameters<\/code><\/p><p>Furthermore, uniform resource locators can only contain numbers, letters, and the following characters ()!$-&lsquo;_*+.<\/p><p>To use other characters, site owners should translate them into programming code. For example, as URLs can&rsquo;t contain spaces, site owners often utilize the plus sign, hyphens, or %20 to replace them.<\/p><p>URLs can contain an <a href=\"\/my\/tutorials\/wordpress-anchor-links\">anchor link<\/a>, also called page jump or fragment identifier. The element is represented with the number sign (#), which bookmarks a specific part inside a resource.<\/p><div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><a href=\"\/my\/tutorials\/wp-content\/uploads\/sites\/2\/2022\/07\/an-anchor-link-in-a-hostinger-tutorial_s-URL-for-how-to-make-a-website.png\"><img decoding=\"async\" width=\"1024\" height=\"44\" src=\"\/tutorials\/wp-content\/uploads\/sites\/2\/2022\/07\/an-anchor-link-in-a-hostinger-tutorial_s-URL-for-how-to-make-a-website-1024x44.png\" alt=\"an anchor link in a Hostinger tutorial's URL for how to make a website\" class=\"wp-image-58345\" srcset=\"https:\/\/www.hostinger.com\/my\/tutorials\/wp-content\/uploads\/sites\/45\/2022\/07\/an-anchor-link-in-a-hostinger-tutorial_s-URL-for-how-to-make-a-website-1024x44.png 1024w, https:\/\/www.hostinger.com\/my\/tutorials\/wp-content\/uploads\/sites\/45\/2022\/07\/an-anchor-link-in-a-hostinger-tutorial_s-URL-for-how-to-make-a-website-300x13.png 300w, https:\/\/www.hostinger.com\/my\/tutorials\/wp-content\/uploads\/sites\/45\/2022\/07\/an-anchor-link-in-a-hostinger-tutorial_s-URL-for-how-to-make-a-website-150x6.png 150w, https:\/\/www.hostinger.com\/my\/tutorials\/wp-content\/uploads\/sites\/45\/2022\/07\/an-anchor-link-in-a-hostinger-tutorial_s-URL-for-how-to-make-a-website-768x33.png 768w, https:\/\/www.hostinger.com\/my\/tutorials\/wp-content\/uploads\/sites\/45\/2022\/07\/an-anchor-link-in-a-hostinger-tutorial_s-URL-for-how-to-make-a-website.png 1165w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure><\/div><p>With an HTML file containing a page jump, a web browser will go directly to the selected section. For a video or audio document, a modern web browser will find the timestamp on which the anchor represents and play accordingly.<\/p><h2 class=\"wp-block-heading\" id=\"h-what-are-the-different-types-of-urls\">What Are the Different Types of URLs<\/h2><p>In general, the most popular types of URLs are absolute and relative.<\/p><p>An absolute URL contains complete information, from the protocol to the path to resources or parameters. In comparison, a relative URL only includes the path to resources.<\/p><p>Based on the function, here are some other types of uniform resource locators:<\/p><ul class=\"wp-block-list\">\n<li><strong>Canonical URLs.<\/strong> Site owners can use them in case they have duplicate content. Setting one URL as canonical is a way to let search engines know which internet address to crawl and index.<\/li>\n\n\n\n<li><strong>Callback URLs.<\/strong> They refer to a home destination when users complete a process on an external system.<\/li>\n\n\n\n<li><strong>Vanity URLs. <\/strong>Also known as custom short URLs, they are easy-to-remember web addresses. Typically, a vanity URL is a redirect of a longer URL. Site owners can use a website URL shortener tool, like <strong>Bitly<\/strong>, <strong>Short.io<\/strong>, and <strong>TinyURL<\/strong>, to create a vanity URL.<\/li>\n<\/ul><h2 class=\"wp-block-heading\" id=\"h-where-is-a-url-located\">Where Is a URL Located<\/h2><div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><a href=\"\/my\/tutorials\/wp-content\/uploads\/sites\/2\/2022\/07\/a-URL-can-be-found-in-the-browser-address-bar.png\"><img decoding=\"async\" width=\"1024\" height=\"404\" src=\"\/tutorials\/wp-content\/uploads\/sites\/2\/2022\/07\/a-URL-can-be-found-in-the-browser-address-bar-1024x404.png\" alt=\"a URL can be found in the browser address bar\" class=\"wp-image-58346\" srcset=\"https:\/\/www.hostinger.com\/my\/tutorials\/wp-content\/uploads\/sites\/45\/2022\/07\/a-URL-can-be-found-in-the-browser-address-bar-1024x404.png 1024w, https:\/\/www.hostinger.com\/my\/tutorials\/wp-content\/uploads\/sites\/45\/2022\/07\/a-URL-can-be-found-in-the-browser-address-bar-300x118.png 300w, https:\/\/www.hostinger.com\/my\/tutorials\/wp-content\/uploads\/sites\/45\/2022\/07\/a-URL-can-be-found-in-the-browser-address-bar-150x59.png 150w, https:\/\/www.hostinger.com\/my\/tutorials\/wp-content\/uploads\/sites\/45\/2022\/07\/a-URL-can-be-found-in-the-browser-address-bar-768x303.png 768w, https:\/\/www.hostinger.com\/my\/tutorials\/wp-content\/uploads\/sites\/45\/2022\/07\/a-URL-can-be-found-in-the-browser-address-bar.png 1165w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure><\/div><p>A URL can usually be found in the address bar at the top of the web browser&rsquo;s window. On laptops and desktop computers, a website URL will always be visible in the address bar as users scroll through the web page.<\/p><p>In the case of mobile devices, the default browser behavior causes a URL to disappear as soon as users start scrolling down. However, it will reappear when users scroll up.<\/p><h2 class=\"wp-block-heading\" id=\"h-how-to-open-a-url\">How to Open a URL<\/h2><p>If you know the complete website URL, typing it on the address bar is one of the easiest ways to open a URL. If not, here are several other ways to do it:<\/p><ul class=\"wp-block-list\">\n<li><strong>Clicking a hyperlink.<\/strong> It can be a text, an icon, or an image that links to another HTML file on the internet. Users can identify a hyperlink by hovering their mouse over the linked text or graphic. Then, a URL link will appear at the bottom of the window, telling users where the link will take them.<\/li>\n\n\n\n<li><strong>Scanning a QR code.<\/strong> Short for quick response code, it&rsquo;s a black and white barcode readable for digital devices. It stores numerous data types, including web links, account information, and encryption details.<\/li>\n\n\n\n<li><strong>Copying and pasting. <\/strong>If you come across a website URL with no links or QR code, copying and pasting it to the address bar will open it.<\/li>\n<\/ul><h2 class=\"wp-block-heading\" id=\"h-how-to-create-a-url\">How to Create a URL<\/h2><p>To create a unique URL, like <code data-enlighter-language=\"generic\" class=\"EnlighterJSRAW\">hostinger.com<\/code>, <code data-enlighter-language=\"generic\" class=\"EnlighterJSRAW\">microsoft.com<\/code>, or <code data-enlighter-language=\"generic\" class=\"EnlighterJSRAW\">linux.org<\/code>, find a credible registrar to register a domain name on your behalf.<\/p><p>A registrar is an <a href=\"https:\/\/www.icann.org\/\" target=\"_blank\" rel=\"noopener\">ICANN-accredited company<\/a> for managing domain reservations and renewals. <strong>Google Domains<\/strong>, <strong>CloudFlare,<\/strong> and <strong>Domain.com<\/strong> are some of the most popular registrars. People can also obtain a custom name from a hosting company offering <a href=\"\/my\/domain-name-search\">registration services<\/a>.<\/p><div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><a href=\"\/my\/tutorials\/wp-content\/uploads\/sites\/2\/2022\/07\/Buy-a-Domain.png\"><img decoding=\"async\" width=\"1024\" height=\"571\" src=\"\/tutorials\/wp-content\/uploads\/sites\/2\/2022\/07\/Buy-a-Domain-1024x571.png\" alt=\"Buy a Domain at Hostinger\" class=\"wp-image-58347\" srcset=\"https:\/\/www.hostinger.com\/my\/tutorials\/wp-content\/uploads\/sites\/45\/2022\/07\/Buy-a-Domain.png 1024w, https:\/\/www.hostinger.com\/my\/tutorials\/wp-content\/uploads\/sites\/45\/2022\/07\/Buy-a-Domain-300x167.png 300w, https:\/\/www.hostinger.com\/my\/tutorials\/wp-content\/uploads\/sites\/45\/2022\/07\/Buy-a-Domain-150x84.png 150w, https:\/\/www.hostinger.com\/my\/tutorials\/wp-content\/uploads\/sites\/45\/2022\/07\/Buy-a-Domain-768x428.png 768w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure><\/div><p>Here is a general step-by-step guide on <a href=\"\/my\/tutorials\/how-to-buy-a-domain-name\">how to buy a domain<\/a>:<\/p><ol class=\"wp-block-list\">\n<li><strong>Ensure the name&rsquo;s availability.<\/strong> For this, you can run a search using a checker. Type in your desired name and extension -&gt; click <strong>Search<\/strong>. It will then provide you with a list of available names.<\/li>\n\n\n\n<li><strong>Proceed to check out. <\/strong>In this step, you will choose the registration period. Typically, a registrar requires a minimum period of one year. That said, some registrars offer up to a ten-year registration period.<\/li>\n\n\n\n<li><strong>Complete the registration process.<\/strong> Once the payment is authorized, the registrar will need you to fill out a setup form, which may include your name, email, address, and contact information. Be sure to input all the details correctly.<\/li>\n\n\n\n<li><strong>Verify name ownership.<\/strong> A verification link should appear on the email you use for registration a few minutes after completing the registration process. If it doesn&rsquo;t arrive, you can send a request from the control panel.<\/li>\n<\/ol><p>As the registration isn&rsquo;t a one-time purchase, every owner should keep track of their domain expiry dates.<\/p><?xml encoding=\"utf-8\" ?><figure class=\"wp-block-image size-full\"><a href=\"\/my\/web-hosting\"><img decoding=\"async\" width=\"1024\" height=\"300\" src=\"https:\/\/www.hostinger.com\/tutorials\/wp-content\/uploads\/sites\/2\/2023\/11\/Web-hosting_in-text-banner.png\" alt=\"Hostinger web hosting banner\" class=\"wp-image-98604\" srcset=\"https:\/\/www.hostinger.com\/my\/tutorials\/wp-content\/uploads\/sites\/45\/2023\/11\/Web-hosting_in-text-banner.png 1024w, https:\/\/www.hostinger.com\/my\/tutorials\/wp-content\/uploads\/sites\/45\/2023\/11\/Web-hosting_in-text-banner-300x88.png 300w, https:\/\/www.hostinger.com\/my\/tutorials\/wp-content\/uploads\/sites\/45\/2023\/11\/Web-hosting_in-text-banner-150x44.png 150w, https:\/\/www.hostinger.com\/my\/tutorials\/wp-content\/uploads\/sites\/45\/2023\/11\/Web-hosting_in-text-banner-768x225.png 768w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure><h2 class=\"wp-block-heading\" id=\"h-conclusion\">Conclusion<\/h2><p>A uniform resource locator (URL) is a complete web address pointing to a specific file on the internet. For example, a URL can lead users to a website, a web page, or an image.<\/p><p>Structure-wise, a URL consists of several elements:<\/p><ul class=\"wp-block-list\">\n<li><strong>HTTP or HTTPS.<\/strong> It&rsquo;s a network communication protocol connecting web servers and web browsers. The latter is more secure than the former.<\/li>\n\n\n\n<li><strong>www.<\/strong> Also called a subdomain, it&rsquo;s the part before a URL&rsquo;s first dot. Site owners can also use any words or phrases for their website organization purposes.<\/li>\n\n\n\n<li><strong>Domain name.<\/strong> Also known as a site address, it is what users type on their browsers to reach a website.<\/li>\n\n\n\n<li><strong>Domain extension.<\/strong> It&rsquo;s the part following a domain name, for example, <strong>.com<\/strong> and <strong>.org<\/strong>.<\/li>\n\n\n\n<li><strong>Path to the resource.<\/strong> Separated by the forward-slash sign (\/), this element gives extra information to a website address.<\/li>\n\n\n\n<li><strong>Parameters. <\/strong>They&rsquo;re often called query strings or URL variables. A question mark (?) indicates a parameter.<\/li>\n<\/ul><p>To create and modify a site&rsquo;s URL, users will need to register a domain through a credible registrar. Alternatively, you can go with a reliable hosting provider offering this registration services.<\/p><p>\n\n\n<div class=\"protip\">\n                    <h4 class=\"title\">Learn more about URLs<\/h4>\n                    <p><a href=\"\/my\/tutorials\/what-is-url-blacklist\">What is URL Blacklist<\/a><br>\n<a href=\"\/my\/tutorials\/uri-vs-url\">URI vs URL<\/a><\/p>\n                <\/div>\n\n\n\n<\/p><h2 class=\"wp-block-heading\" id=\"h-what-is-a-url-faq\">What Is a URL FAQ<\/h2><p>This section will answer some of the most common questions about a uniform resource locator (URL).<\/p><div class=\"schema-faq wp-block-yoast-faq-block\"><div class=\"schema-faq-section\" id=\"faq-question-1657025798996\"><h3 class=\"schema-faq-question\">How Do I Find My URL?<\/h3> <p class=\"schema-faq-answer\">You can obtain a custom domain name from a registrar or a hosting provider offering this registration services. Generally, the process includes:<br>1. Creating a unique name.<br>2. Running a name search.<br>3. Registering the chosen name.<\/p> <\/div> <div class=\"schema-faq-section\" id=\"faq-question-1657025815240\"><h3 class=\"schema-faq-question\">How to Block a URL?<\/h3> <p class=\"schema-faq-answer\">Here are four ways to <a href=\"\/my\/tutorials\/how-to-block-a-website\">block a URL<\/a>:<br><strong>Edit the hosts file.<\/strong> Redirect a domain name to your localhost IP address to block a website.&nbsp;<br><strong>Use a Google Chrome extension.<\/strong> Windows and Mac users can install a site blocker extension, like <a href=\"https:\/\/blocksite.co\/\" target=\"_blank\" rel=\"noopener\">BlockSite<\/a>.&nbsp;<br><strong>Install a site blocker on iOS and Android. <\/strong>After the installation, users can add websites and apps to their block list by tapping the green plus icon.&nbsp;<br><strong>Utilize built-in parental controls.<\/strong> On Windows 10, parents can create a child account to add a block list.&nbsp;<\/p> <\/div> <div class=\"schema-faq-section\" id=\"faq-question-1657025844076\"><h3 class=\"schema-faq-question\">Is a URL the Same as an IP Address or a Web Address?<\/h3> <p class=\"schema-faq-answer\">In short, no. An <a href=\"\/my\/tutorials\/what-is-ip-address\">IP address<\/a> refers to a string of numbers pointing to a computer or web server on a network. Meanwhile, a website address is a user-friendly substitute for an IP address. It&rsquo;s what users type on their browser to reach a website.&nbsp;For example, <code data-enlighter-language=\"generic\" class=\"EnlighterJSRAW\">hostinger.com<\/code><strong> <\/strong>is a domain name and a full URL to access our website. On the other hand, <code data-enlighter-language=\"generic\" class=\"EnlighterJSRAW\">hostinger.com\/tutorials\/how-to-make-a-website<\/code> is not a website address. It&rsquo;s a complete URL to access our <strong>How to Make a Website<\/strong> article.<\/p> <\/div> <\/div>\n","protected":false},"excerpt":{"rendered":"<p>A URL (uniform resource locator) it&rsquo;s a type of uniform resource identifier (URI) that provides a way to access information from remote computers, like a web server and cloud storage. URLs play a vital role in web navigation and online communication by providing a structured way to locate and access various web resources and hyperlinks. [&#8230;]<\/p>\n<p><a class=\"btn btn-secondary understrap-read-more-link\" href=\"\/my\/tutorials\/what-is-a-url\">Read More&#8230;<\/a><\/p>\n","protected":false},"author":309,"featured_media":64044,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"rank_math_title":"What Is a URL: Structure, Examples, Types, and More","rank_math_description":"A URL (Uniform Resource Locator) is a web address that directs a browser to a website or resources on the internet. Read to find out more!","rank_math_focus_keyword":"what is a url","footnotes":""},"categories":[],"tags":[],"class_list":["post-58336","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry"],"hreflangs":[{"locale":"en-US","link":"https:\/\/www.hostinger.com\/tutorials\/what-is-a-url","default":0},{"locale":"pt-BR","link":"https:\/\/www.hostinger.com\/br\/tutoriais\/o-que-e-url","default":0},{"locale":"fr-FR","link":"https:\/\/www.hostinger.com\/fr\/tutoriels\/qu-est-ce-qu-une-url","default":0},{"locale":"es-ES","link":"https:\/\/www.hostinger.com\/es\/tutoriales\/que-es-una-url","default":0},{"locale":"id-ID","link":"https:\/\/www.hostinger.com\/id\/tutorial\/apa-itu-url","default":0},{"locale":"de-DE","link":"https:\/\/www.hostinger.com\/de\/tutorials\/was-ist-eine-url","default":0},{"locale":"it-IT","link":"https:\/\/www.hostinger.com\/it\/tutorial\/cos-e-un-url","default":0},{"locale":"nl-NL","link":"https:\/\/www.hostinger.com\/nl\/tutorials\/wat-is-een-url","default":0},{"locale":"pl-PL","link":"https:\/\/www.hostinger.com\/pl\/tutoriale\/\/co-to-jest-url\/","default":0},{"locale":"ar-AE","link":"https:\/\/blog.hostinger.io\/ae\/tutorials\/what-is-a-url\/","default":0},{"locale":"en-UK","link":"https:\/\/www.hostinger.com\/uk\/tutorials\/what-is-a-url","default":0},{"locale":"en-MY","link":"https:\/\/www.hostinger.com\/my\/tutorials\/what-is-a-url-examples-structure-and-more","default":0},{"locale":"en-PH","link":"https:\/\/www.hostinger.com\/ph\/tutorials\/what-is-a-url-examples-structure-and-more","default":0},{"locale":"es-MX","link":"https:\/\/www.hostinger.com\/mx\/tutoriales\/que-es-una-url","default":0},{"locale":"es-CO","link":"https:\/\/www.hostinger.com\/co\/tutoriales\/que-es-una-url","default":0},{"locale":"es-AR","link":"https:\/\/www.hostinger.com\/ar\/tutoriales\/que-es-una-url","default":0},{"locale":"en-IN","link":"https:\/\/www.hostinger.com\/in\/tutorials\/what-is-a-url","default":0},{"locale":"en-CA","link":"https:\/\/www.hostinger.com\/ca\/tutorials\/what-is-a-url","default":0},{"locale":"pt-PT","link":"https:\/\/www.hostinger.com\/pt\/tutoriais\/o-que-e-url","default":0},{"locale":"en-AU","link":"https:\/\/www.hostinger.com\/au\/tutorials\/what-is-a-url","default":0},{"locale":"en-NG","link":"https:\/\/www.hostinger.com\/ng\/tutorials\/what-is-a-url","default":0}],"_links":{"self":[{"href":"https:\/\/www.hostinger.com\/my\/tutorials\/wp-json\/wp\/v2\/posts\/58336","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.hostinger.com\/my\/tutorials\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.hostinger.com\/my\/tutorials\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.hostinger.com\/my\/tutorials\/wp-json\/wp\/v2\/users\/309"}],"replies":[{"embeddable":true,"href":"https:\/\/www.hostinger.com\/my\/tutorials\/wp-json\/wp\/v2\/comments?post=58336"}],"version-history":[{"count":57,"href":"https:\/\/www.hostinger.com\/my\/tutorials\/wp-json\/wp\/v2\/posts\/58336\/revisions"}],"predecessor-version":[{"id":113666,"href":"https:\/\/www.hostinger.com\/my\/tutorials\/wp-json\/wp\/v2\/posts\/58336\/revisions\/113666"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.hostinger.com\/my\/tutorials\/wp-json\/wp\/v2\/media\/64044"}],"wp:attachment":[{"href":"https:\/\/www.hostinger.com\/my\/tutorials\/wp-json\/wp\/v2\/media?parent=58336"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.hostinger.com\/my\/tutorials\/wp-json\/wp\/v2\/categories?post=58336"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.hostinger.com\/my\/tutorials\/wp-json\/wp\/v2\/tags?post=58336"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}