BF50 Black Friday · 50% off all plans
from $5/mo · Auto-applied ---:--:-- Claim 50% off →
Skip to content

Search Seonio

Type a keyword, domain, or paste a URL

Start free with $1 to see full results. Powered by Seonio
Web Development

URL: What a web address is and its parts

A URL is the address of one resource on the web. It tells a browser how to fetch it, from which server, and which page or file to ask for.

Monthly searches · url
1.0m
Keyword research data
url
URL: What a web address is and its parts
Click the image to view it full size

URL stands for Uniform Resource Locator. It's the text you type in a browser's address bar or put in a link, like https://www.example.com/shoes/running?color=red. Each URL points to one resource: a page, an image, a PDF, a script.

The parts of a URL

Here is one URL taken apart:

https://www.example.com:443/shoes/running?color=red#reviews

Part In the example What it does
Scheme https The protocol the browser uses to fetch the resource
Host (domain) www.example.com Which server to ask
Port 443 Which "gate" on that server; usually left out, because 443 is the default for HTTPS and 80 for HTTP
Path /shoes/running Which resource on that server
Query ?color=red Extra parameters for the server, as key=value pairs joined by &
Fragment #reviews A spot inside the page; the browser keeps it and never sends it to the server

Only the scheme and host are needed to reach a site. The domain name is the part you register. The URL path, query string and fragment identifier each have their own article.

In the early web, a path pointed to a real file on the server. Today it's mostly a name the server's software interprets, so a site can design its paths for people. MDN

Absolute and relative URLs

An absolute URL has every part needed to find the resource, starting with the scheme. A relative URL leaves parts out and lets the browser fill them in from the current page:

  • /shoes/running keeps the current scheme and host and replaces the path.
  • running looks in the same folder as the current page.
  • #reviews stays on the current page and jumps to a spot in it.

Inside a website, relative links save typing. For a canonical tag or a sitemap, use absolute URLs.

URL, URI and URN

You'll sometimes see "URI" instead. A URI (Uniform Resource Identifier) is any string that identifies a resource. A URL is the kind of URI that also says how to reach it, through its scheme and location. A URN is a name meant to stay the same even if the resource moves, such as urn:isbn:... for a book.

In practice the difference has faded. The WHATWG URL Standard, which browsers follow, chose to use "URL" for all of them, saying the separate terms are just confusing. WHATWG

Who defines URLs

  • RFC 1738 (December 1994) first specified URLs, edited by Tim Berners-Lee, Larry Masinter and Mark McCahill.
  • RFC 3986 (January 2005) defines the generic syntax all URIs share. It's also known as Internet Standard 66, and Google Search follows it.
  • The WHATWG URL Living Standard describes how browsers actually parse URLs, and aims to replace the RFCs.

What URLs mean for SEO

To a search engine, every distinct URL is a separate page. That has a few practical results:

  • Case matters. The scheme and host aren't case-sensitive, but the rest is. Google treats /APPLE and /apple as two URLs. Google Search Central
  • Small differences create duplicates. http and https, www and no www, a trailing slash or a tracking parameter can each give the same page a second address. URL canonicalization is how Google picks one.
  • Readable URLs help people more than rankings. Google can show parts of the URL as breadcrumbs, so words help searchers judge a result. But Google says keywords in the domain or path alone have hardly any ranking effect beyond that.
  • Special characters need encoding. Spaces, reserved symbols and non-English letters are written in URL encoding.

For how to plan a site's URLs as a whole, see URL structure.

Seonio

Put it to work on your own site

Keyword research, traffic, backlinks and clustering in one place. Start with a free $1 to test, no card required.