{"id":58336,"date":"2022-07-05T13:03:11","date_gmt":"2022-07-05T13:03:11","guid":{"rendered":"\/tutorials\/?p=58336"},"modified":"2026-03-09T19:18:31","modified_gmt":"2026-03-09T19:18:31","slug":"what-is-a-url","status":"publish","type":"post","link":"\/ng\/tutorials\/what-is-a-url","title":{"rendered":"What is a URL? Uniform Resource Locator explained"},"content":{"rendered":"<?xml encoding=\"utf-8\" ?><p>A URL (Uniform Resource Locator) is a unique address that points to a specific resource on the internet, like a web page or a file.<\/p><p>A URL is made up of several key components, each with a specific job. Here&rsquo;s a quick look at the parts you&rsquo;ll find in most web addresses:<\/p><ul class=\"wp-block-list\">\n<li><strong>HTTP or HTTPS. <\/strong>This is the protocol that tells your browser how to connect to the website&rsquo;s server. HTTPS is the secure version, meaning any data you share is encrypted.<\/li>\n\n\n\n<li><strong>Subdomain.<\/strong> A part of the main domain, like www or blog, used to organize a website&rsquo;s content.<\/li>\n\n\n\n<li><strong>Domain name.<\/strong> The unique name that identifies a website, like the <em>hostinger<\/em> part of hostinger.com.<\/li>\n\n\n\n<li><strong>Domain extension. <\/strong>The ending of the domain name, like .com or .org, also known as a top-level domain (TLD).<\/li>\n\n\n\n<li><strong>Path to the resource.<\/strong> This is the specific folder and file on the server, which directs the browser to the correct page, like <strong>\/tutorials\/what-is-a-url<\/strong>.<\/li>\n\n\n\n<li><strong>Parameters. <\/strong>These are used to pass extra information to the server and come after a question mark.<\/li>\n<\/ul><p>While most URLs you see are absolute URLs that contain a full address, there are also relative URLs, which point to a file or page within the same website.<\/p><p>Creating a URL is straightforward. It all starts with registering a domain name through a provider like Hostinger and connecting it to a hosting plan, which automatically generates the main URL for your new website.<\/p><p>\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 https:\/\/www.hostinger.com and entering it in a browser&rsquo;s address bar directs users to our website. The same applies to examples like https:\/\/www.microsoft.com and https:\/\/www.linux.org.<\/p><p>That said, URLs can get more specific.<\/p><p>For example, on our website the relative URL <strong>\/tutorials<\/strong>\/ &ndash; this will look like &ldquo;https:\/\/www.hostinger.com\/tutorials\/&rdquo; in the browser address bar &ndash; leads users to our Tutorials page, and <strong>\/tutorials\/how-to-make-a-website<\/strong> is the URL for our <em>How to make a website<\/em> article on Hostinger Tutorials.<\/p><p>URLs can also send users to a particular section on a web page. These are called anchor links and look like this: <strong>\/tutorials\/how-to-make-a-website#6_Optimize_Your_Website_for_SEO_and_Conversions<\/strong><\/p><p>The above URL, for example, sends users to tip number 6 in the <em>How to make a website<\/em> article.<\/p><p>Lastly, every uploaded image has its own URL, enabling users to access it directly. The following relative URL leads to the featured image of our <em>How to make a website<\/em> article: <strong>\/tutorials\/wp-content\/uploads\/sites\/2\/2021\/08\/how-to-make-a-website-1.png<\/strong>.<\/p><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\"><figure data-wp-context='{\"imageId\":\"69e181ff80532\"}' data-wp-interactive=\"core\/image\" class=\"aligncenter size-large wp-lightbox-container\"><img loading=\"lazy\" decoding=\"async\" width=\"1068\" height=\"450\" data-wp-class--hide=\"state.isContentHidden\" data-wp-class--show=\"state.isContentVisible\" data-wp-init=\"callbacks.setButtonStyles\" data-wp-on-async--click=\"actions.showLightbox\" data-wp-on-async--load=\"callbacks.setButtonStyles\" data-wp-on-async-window--resize=\"callbacks.setButtonStyles\" src=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2022\/07\/the-structure-of-a-url.png\/public\" alt=\"the structure of a url\" class=\"wp-image-58337\" srcset=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2022\/07\/the-structure-of-a-url.png\/w=1068,fit=scale-down 1068w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2022\/07\/the-structure-of-a-url.png\/w=300,fit=scale-down 300w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2022\/07\/the-structure-of-a-url.png\/w=1024,fit=scale-down 1024w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2022\/07\/the-structure-of-a-url.png\/w=150,fit=scale-down 150w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2022\/07\/the-structure-of-a-url.png\/w=768,fit=scale-down 768w\" sizes=\"auto, (max-width: 1068px) 100vw, 1068px\" \/><button class=\"lightbox-trigger\" type=\"button\" aria-haspopup=\"dialog\" aria-label=\"Enlarge\" data-wp-init=\"callbacks.initTriggerButton\" data-wp-on-async--click=\"actions.showLightbox\" data-wp-style--right=\"state.imageButtonRight\" data-wp-style--top=\"state.imageButtonTop\">\n\t\t\t<svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"12\" height=\"12\" fill=\"none\" viewbox=\"0 0 12 12\">\n\t\t\t\t<path fill=\"#fff\" d=\"M2 0a2 2 0 0 0-2 2v2h1.5V2a.5.5 0 0 1 .5-.5h2V0H2Zm2 10.5H2a.5.5 0 0 1-.5-.5V8H0v2a2 2 0 0 0 2 2h2v-1.5ZM8 12v-1.5h2a.5.5 0 0 0 .5-.5V8H12v2a2 2 0 0 1-2 2H8Zm2-12a2 2 0 0 1 2 2v2h-1.5V2a.5.5 0 0 0-.5-.5H8V0h2Z\"><\/path>\n\t\t\t<\/svg>\n\t\t<\/button><\/figure><\/div><p>As you can see from the image, a Uniform Resource Locator (URL) consists of 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><p>HTTP (Hypertext Transfer Protocol) and HTTPS (Hypertext Transfer Protocol Secure) 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 protocol in the above diagram is <strong>https:\/\/<\/strong>.<\/p><p>The difference between <a href=\"\/ng\/tutorials\/http-vs-https\">HTTP and HTTPS<\/a> 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><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\"><figure data-wp-context='{\"imageId\":\"69e181ff80c9a\"}' data-wp-interactive=\"core\/image\" class=\"aligncenter size-large wp-lightbox-container\"><img loading=\"lazy\" decoding=\"async\" width=\"8535\" height=\"6416\" data-wp-class--hide=\"state.isContentHidden\" data-wp-class--show=\"state.isContentVisible\" data-wp-init=\"callbacks.setButtonStyles\" data-wp-on-async--click=\"actions.showLightbox\" data-wp-on-async--load=\"callbacks.setButtonStyles\" data-wp-on-async-window--resize=\"callbacks.setButtonStyles\" src=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2024\/10\/Subdomain-structure.png\/public\" alt=\"Illustration showing an example of a subdomain\" class=\"wp-image-117505\" srcset=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2024\/10\/Subdomain-structure.png\/w=8535,fit=scale-down 8535w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2024\/10\/Subdomain-structure.png\/w=300,fit=scale-down 300w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2024\/10\/Subdomain-structure.png\/w=1024,fit=scale-down 1024w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2024\/10\/Subdomain-structure.png\/w=150,fit=scale-down 150w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2024\/10\/Subdomain-structure.png\/w=768,fit=scale-down 768w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2024\/10\/Subdomain-structure.png\/w=1536,fit=scale-down 1536w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2024\/10\/Subdomain-structure.png\/w=2048,fit=scale-down 2048w\" sizes=\"auto, (max-width: 8535px) 100vw, 8535px\" \/><button class=\"lightbox-trigger\" type=\"button\" aria-haspopup=\"dialog\" aria-label=\"Enlarge\" data-wp-init=\"callbacks.initTriggerButton\" data-wp-on-async--click=\"actions.showLightbox\" data-wp-style--right=\"state.imageButtonRight\" data-wp-style--top=\"state.imageButtonTop\">\n\t\t\t<svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"12\" height=\"12\" fill=\"none\" viewbox=\"0 0 12 12\">\n\t\t\t\t<path fill=\"#fff\" d=\"M2 0a2 2 0 0 0-2 2v2h1.5V2a.5.5 0 0 1 .5-.5h2V0H2Zm2 10.5H2a.5.5 0 0 1-.5-.5V8H0v2a2 2 0 0 0 2 2h2v-1.5ZM8 12v-1.5h2a.5.5 0 0 0 .5-.5V8H12v2a2 2 0 0 1-2 2H8Zm2-12a2 2 0 0 1 2 2v2h-1.5V2a.5.5 0 0 0-.5-.5H8V0h2Z\"><\/path>\n\t\t\t<\/svg>\n\t\t<\/button><\/figure><\/div><p>A <a href=\"\/ng\/tutorials\/what-is-a-subdomain\">subdomain<\/a> consists of any words or phrases that come before a URL&rsquo;s first dot. The most common type is <strong>www<\/strong>. It is the most common subdomain, traditionally used for web content, but it&rsquo;s not mandatory.<\/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><p>For example, while hostinger.com uses www, the subdomain for our Knowledge Base page is &ldquo;support.&rdquo; Hence, the <strong>support.hostinger.com<\/strong> URL.<\/p><h3 class=\"wp-block-heading\" id=\"h-domain-name\">Domain name<\/h3><p>A <a href=\"\/ng\/tutorials\/what-is-a-domain-name\">domain name<\/a> is 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, <strong>hostinger.com<\/strong> or <strong>yourdomain.com<\/strong>.<\/p><p><span style=\"margin: 0px;padding: 0px\">Every name is unique, and it represents its corresponding&nbsp;IP address (a numerical identifier like 192.168.1.1).<\/span> 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><p>Also <span style=\"margin: 0px;padding: 0px\">known as a&nbsp;top-level domain (TLD), it is the part that follo<\/span>ws a website name. According to the latest <a href=\"\/ng\/tutorials\/domain-name-statistics\">domain name statistics<\/a>, .com has over 157.2 million registrations, making it 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 .com, .org, .net.<\/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 .mx, .in, or .at.<\/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 .travel, and DotAsia Organization Ltd. sponsors .asia domain extension.<\/li>\n\n\n\n<li><strong>New gTLD (nTLD)<\/strong>. It&rsquo;s a new generation of domain extensions. <span style=\"margin: 0px;padding: 0px\">Basically, any TLD launched after 12 January 2012 is a new gTLD, including&nbsp;.online,&nbsp;.store, and&nbsp;.tech.<\/span><\/li>\n<\/ul><h3 class=\"wp-block-heading\" id=\"h-path-to-the-resource\">Path to the resource<\/h3><p>A path to the resource or simply URL path is the part to the right of the TLD. It&rsquo;s often referred to as the folder structure of the website.<\/p><p>In the URL https:\/\/www.hostinger.com\/tutorials\/how-to-make-a-website, the path to the resource is <strong>\/tutorials\/how-to-make-a-website<\/strong>.<\/p><p>A path to the resource provides additional information to a web server, enabling it to direct 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><p>Parameters are query strings or URL variables. They&rsquo;re the portion of a URL following a question mark.<\/p><p>Parameters consist of keys and values separated by an equal sign (=). Furthermore, a URL can have multiple variables. In that case, the ampersand symbol (&amp;) will separate each.<\/p><p>An example of a URL with a parameter is: https:\/\/www.example.com\/search<strong>?q=blue-widgets<\/strong><\/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 code to track traffic from ads and marketing campaigns.<\/li>\n<\/ul><p>To keep learning, download our free Web Development Glossary for Beginners PDF to have all the key terms in one place.<\/p><p class=\"has-text-align-center\"><a href=\"https:\/\/assets.hostinger.com\/content\/Web-Development-Glossary-for-Beginners.pdf\">Download glossary for web beginners<\/a><\/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 components and symbols are allowed in a URL. Here&rsquo;s what a URL&rsquo;s general syntax looks like:<\/p><p><strong>http:\/\/subdomain.domain-name.domain-extension\/path-to-resource?parameters<\/strong><\/p><p>Each component has a fixed position&mdash;you can&rsquo;t rearrange them. The protocol and domain are required, while subdomain, path, parameters, and anchors are optional.<\/p><p>URLs can only use certain characters directly: letters (A-Z, a-z), numbers (0-9), and a few special characters like hyphens (-), underscores (_), and periods (.).<\/p><p>Any other characters, including spaces, need percent encoding (also called URL encoding). This converts characters into a format browsers can process. For example, a percent sign becomes %25, a space becomes %20, and an exclamation mark becomes %21.<\/p><p>URLs can contain an anchor link, also called a page jump or fragment identifier. The element is represented with the number sign (#), which bookmarks a specific part inside a resource.<\/p><p>For example: \/tutorials\/how-to-make-a-website<strong>#6_Optimize_Your_Website_for_SEO_and_Conversions<\/strong>.<\/p><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 that 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>The two main types of URLs you&rsquo;ll encounter are absolute and relative, but there are several other types used for specific functions like marketing and search engine optimization.&nbsp;<\/p><p>Here&rsquo;s a breakdown of the most common URL types and how they work.<\/p><p><strong>1. Absolute URLs<\/strong><\/p><ul class=\"wp-block-list\">\n<li><strong>What they are:<\/strong> A complete web address containing all the information needed to locate a resource, including the protocol (https:\/\/), domain name (hostinger.com), and path (\/tutorials).<\/li>\n\n\n\n<li><strong>Example:<\/strong> https:\/\/www.hostinger.com\/tutorials\/what-is-a-url<\/li>\n\n\n\n<li><strong>Purpose:<\/strong> To link to any resource on the internet, whether it&rsquo;s on your own website or an external one.<\/li>\n<\/ul><p><strong>2. Relative URLs<\/strong><\/p><ul class=\"wp-block-list\">\n<li><strong>What they are:<\/strong> A partial address that only includes the path to a resource relative to the current page. The browser fills in the rest of the information (the protocol and domain) from the page you&rsquo;re currently on.<\/li>\n\n\n\n<li><strong>Example:<\/strong> \/tutorials\/what-is-a-url<\/li>\n\n\n\n<li><strong>Purpose:<\/strong> Used for linking between pages on the same website. This makes site maintenance easier, as links won&rsquo;t break if you change your domain name.<\/li>\n<\/ul><p><strong>3. Dynamic URLs<\/strong><\/p><ul class=\"wp-block-list\">\n<li><strong>What they are:<\/strong> URLs that are generated based on a user&rsquo;s action and often contain parameters like ? or &amp; to retrieve specific information from a database.<\/li>\n\n\n\n<li><strong>Example:<\/strong> https:\/\/www.example-shop.com\/products?category=shoes&amp;color=black<\/li>\n\n\n\n<li><strong>Purpose:<\/strong> To display content that changes based on user input, standard on ecommerce sites, search results pages, and web applications.<\/li>\n<\/ul><p><strong>4. Canonical URLs<\/strong><\/p><ul class=\"wp-block-list\">\n<li><strong>What they are:<\/strong> The preferred URL for a piece of content that might be accessible through multiple addresses. Site owners specify the canonical URL in the page&rsquo;s code.<\/li>\n\n\n\n<li><strong>Example:<\/strong> You might have two URLs for the same page: <strong>https:\/\/example.com\/product<\/strong> and <strong>https:\/\/example.com\/product?source=facebook<\/strong>. The canonical URL would be the first one.<\/li>\n\n\n\n<li><strong>Purpose:<\/strong> To prevent issues with duplicate content in search engine results and consolidate your SEO value to a single, preferred page.<\/li>\n<\/ul><p><strong>5. Vanity URLs<\/strong><\/p><ul class=\"wp-block-list\">\n<li><strong>What they are:<\/strong> Short, memorable, and custom-branded URLs. They are created to be easily shared and typically redirect to a longer, more complex web address.<\/li>\n\n\n\n<li><strong>Example:<\/strong> YourBrand.com\/Sale (which might redirect to a longer URL with tracking parameters).<\/li>\n\n\n\n<li><strong>Purpose:<\/strong> Primarily used in marketing and social media campaigns to create user-friendly links that are easy to remember and type.<\/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\"><figure data-wp-context='{\"imageId\":\"69e181ff81c3a\"}' data-wp-interactive=\"core\/image\" class=\"aligncenter size-large wp-lightbox-container\"><img loading=\"lazy\" decoding=\"async\" width=\"1165\" height=\"460\" data-wp-class--hide=\"state.isContentHidden\" data-wp-class--show=\"state.isContentVisible\" data-wp-init=\"callbacks.setButtonStyles\" data-wp-on-async--click=\"actions.showLightbox\" data-wp-on-async--load=\"callbacks.setButtonStyles\" data-wp-on-async-window--resize=\"callbacks.setButtonStyles\" src=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2022\/07\/a-URL-can-be-found-in-the-browser-address-bar.png\/public\" alt=\"a URL can be found in the browser address bar\" class=\"wp-image-58346\" srcset=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2022\/07\/a-URL-can-be-found-in-the-browser-address-bar.png\/w=1165,fit=scale-down 1165w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2022\/07\/a-URL-can-be-found-in-the-browser-address-bar.png\/w=300,fit=scale-down 300w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2022\/07\/a-URL-can-be-found-in-the-browser-address-bar.png\/w=1024,fit=scale-down 1024w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2022\/07\/a-URL-can-be-found-in-the-browser-address-bar.png\/w=150,fit=scale-down 150w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2022\/07\/a-URL-can-be-found-in-the-browser-address-bar.png\/w=768,fit=scale-down 768w\" sizes=\"auto, (max-width: 1165px) 100vw, 1165px\" \/><button class=\"lightbox-trigger\" type=\"button\" aria-haspopup=\"dialog\" aria-label=\"Enlarge\" data-wp-init=\"callbacks.initTriggerButton\" data-wp-on-async--click=\"actions.showLightbox\" data-wp-style--right=\"state.imageButtonRight\" data-wp-style--top=\"state.imageButtonTop\">\n\t\t\t<svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"12\" height=\"12\" fill=\"none\" viewbox=\"0 0 12 12\">\n\t\t\t\t<path fill=\"#fff\" d=\"M2 0a2 2 0 0 0-2 2v2h1.5V2a.5.5 0 0 1 .5-.5h2V0H2Zm2 10.5H2a.5.5 0 0 1-.5-.5V8H0v2a2 2 0 0 0 2 2h2v-1.5ZM8 12v-1.5h2a.5.5 0 0 0 .5-.5V8H12v2a2 2 0 0 1-2 2H8Zm2-12a2 2 0 0 1 2 2v2h-1.5V2a.5.5 0 0 0-.5-.5H8V0h2Z\"><\/path>\n\t\t\t<\/svg>\n\t\t<\/button><\/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 in 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 by 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>Creating a functional URL, like hostinger.com, microsoft.com, or linux.org, starts with registering a domain name and connecting it to a web hosting service. The domain forms the core of your URL, while hosting enables the actual website that responds when someone visits that address.<\/p><p>A registrar is a company that manages domain reservations and renewals. Hostinger is one of the most popular hosting providers and domain registrars. <\/p><div class=\"wp-block-image\"><figure data-wp-context='{\"imageId\":\"69e181ff8220a\"}' data-wp-interactive=\"core\/image\" class=\"aligncenter size-large wp-lightbox-container\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"571\" data-wp-class--hide=\"state.isContentHidden\" data-wp-class--show=\"state.isContentVisible\" data-wp-init=\"callbacks.setButtonStyles\" data-wp-on-async--click=\"actions.showLightbox\" data-wp-on-async--load=\"callbacks.setButtonStyles\" data-wp-on-async-window--resize=\"callbacks.setButtonStyles\" src=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2022\/07\/Buy-a-Domain.png\/public\" alt=\"Buy a Domain at Hostinger\" class=\"wp-image-58347\" srcset=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2022\/07\/Buy-a-Domain.png\/w=1024,fit=scale-down 1024w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2022\/07\/Buy-a-Domain.png\/w=300,fit=scale-down 300w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2022\/07\/Buy-a-Domain.png\/w=150,fit=scale-down 150w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2022\/07\/Buy-a-Domain.png\/w=768,fit=scale-down 768w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><button class=\"lightbox-trigger\" type=\"button\" aria-haspopup=\"dialog\" aria-label=\"Enlarge\" data-wp-init=\"callbacks.initTriggerButton\" data-wp-on-async--click=\"actions.showLightbox\" data-wp-style--right=\"state.imageButtonRight\" data-wp-style--top=\"state.imageButtonTop\">\n\t\t\t<svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"12\" height=\"12\" fill=\"none\" viewbox=\"0 0 12 12\">\n\t\t\t\t<path fill=\"#fff\" d=\"M2 0a2 2 0 0 0-2 2v2h1.5V2a.5.5 0 0 1 .5-.5h2V0H2Zm2 10.5H2a.5.5 0 0 1-.5-.5V8H0v2a2 2 0 0 0 2 2h2v-1.5ZM8 12v-1.5h2a.5.5 0 0 0 .5-.5V8H12v2a2 2 0 0 1-2 2H8Zm2-12a2 2 0 0 1 2 2v2h-1.5V2a.5.5 0 0 0-.5-.5H8V0h2Z\"><\/path>\n\t\t\t<\/svg>\n\t\t<\/button><\/figure><\/div><p>Here is a general step-by-step guide on <a href=\"\/ng\/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 domain checker. Type in your desired name and extension and 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 registration periods of up to ten years.<\/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 in 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><p>    <div class=\"mb-50 mt-50 domain-checker domain-checker__bg\">\n        <h3 class=\"m-0 text-center text-white pb-10\">Domain Name Checker<\/h3>\n        <p class=\"pb-40 text-center text-white\">Instantly check domain name availability.<\/p>\n        <form id=\"domain-checker-form\" class=\"d-flex w-100 position-relative flex-column flex-sm-row align-items-center\" action=\"\/domain-checker\">\n            <input\n                    class=\"domain-checker__input label text-light-black\"\n                    name=\"domain\" type=\"text\"\n                    placeholder=\"Enter your desired domain name\"\n                    value=\"\"\n            \/>\n            <input id=\"domain-submit\"\n                   type=\"submit\"\n                   value=\"Check\"\n                   class=\"domain-checker__button hb--danger new-h-button-primary button text-white float-right\"\/>\n        <\/form>\n    <\/div>\n\n\n<\/p><h2 class=\"wp-block-heading\" id=\"h-how-to-choose-the-best-domain-name-for-my-website-s-url\">How to choose the best domain name for my website&rsquo;s URL?<\/h2><p>Now that you understand all the components that make up a URL, the next step is to have one for your own website. The most important part is the domain name, as it serves as the foundation of your online presence and brand identity.<\/p><p>To guide you through the process, our guide on <a href=\"\/ng\/tutorials\/how-to-choose-the-right-domain-name\">how to choose a domain name<\/a> provides a step-by-step walkthrough, from brainstorming ideas to avoiding common mistakes. Taking the time to pick a great domain will ensure your URL is credible, memorable, and easy for people to find.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>A URL (Uniform Resource Locator) is a unique address that points to a specific resource on the internet, like a web page or a file. A URL is made up of several key components, each with a specific job. Here&rsquo;s a quick look at the parts you&rsquo;ll find in most web addresses: While most URLs [&#8230;]<\/p>\n<p><a class=\"btn btn-secondary understrap-read-more-link\" href=\"\/ng\/tutorials\/what-is-a-url\">Read More&#8230;<\/a><\/p>\n","protected":false},"author":309,"featured_media":144391,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"rank_math_title":"What is a URL? Uniform Resource Locator explained","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":[22631],"tags":[],"class_list":["post-58336","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-domains"],"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\/ng\/tutorials\/wp-json\/wp\/v2\/posts\/58336","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.hostinger.com\/ng\/tutorials\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.hostinger.com\/ng\/tutorials\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.hostinger.com\/ng\/tutorials\/wp-json\/wp\/v2\/users\/309"}],"replies":[{"embeddable":true,"href":"https:\/\/www.hostinger.com\/ng\/tutorials\/wp-json\/wp\/v2\/comments?post=58336"}],"version-history":[{"count":83,"href":"https:\/\/www.hostinger.com\/ng\/tutorials\/wp-json\/wp\/v2\/posts\/58336\/revisions"}],"predecessor-version":[{"id":144390,"href":"https:\/\/www.hostinger.com\/ng\/tutorials\/wp-json\/wp\/v2\/posts\/58336\/revisions\/144390"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.hostinger.com\/ng\/tutorials\/wp-json\/wp\/v2\/media\/144391"}],"wp:attachment":[{"href":"https:\/\/www.hostinger.com\/ng\/tutorials\/wp-json\/wp\/v2\/media?parent=58336"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.hostinger.com\/ng\/tutorials\/wp-json\/wp\/v2\/categories?post=58336"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.hostinger.com\/ng\/tutorials\/wp-json\/wp\/v2\/tags?post=58336"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}