URL — what is a URL and what are its parts?
What is a URL?
A URL (Uniform Resource Locator) is the address of a resource on the web: a page, an image, a PDF or any other item a browser can fetch. It's the string you see in the browser's address bar and the one behind every link, for example https://arduralab.com/en/glossary/url.
Two documents define how URLs are written: IETF STD 66 (RFC 3986) and the WHATWG URL Standard, which modern browsers follow when parsing addresses.
What are the parts of a URL?
According to MDN's guide to URLs, a URL has mandatory and optional parts:
- Scheme (
https) — the protocol the browser should use to request the resource. On websites today it's almost always HTTPS. - Domain (
arduralab.com) — identifies the web server being requested. It can be followed by a port, usually omitted when the server uses the standard one. - Path (
/en/glossary/url) — the location of the resource on the server. It used to map to a physical file; today it's usually just a logical address. - Parameters (
?sort=price&page=2) — key–value pairs passed to the server, separated by&. - Fragment (
#section) — points to a place inside the page that the browser should scroll to.
URL vs. domain
A domain is just one part of a URL. A single domain hosts many different URLs: every page, every image and every parameter variant is a separate URL. To a search engine, https://example.com/offer, https://example.com/offer?utm_source=newsletter and http://example.com/offer are three different addresses, even if they show the same content.
URLs and SEO
Google's guidance on URL structure starts with technical requirements. Google supports URLs as defined by IETF STD 66, and reserved characters must be percent-encoded. Fragments after # shouldn't be used to change page content, because Google Search generally doesn't support them. Parameters are best written the common way: = between a key and its value, and & between parameters.
The remaining recommendations are about readability. Google advises using words rather than long ID numbers, writing them in your audience's language and separating words with hyphens (-) rather than underscores. For non-ASCII characters, it recommends percent encoding in links.
Whether Google knows a specific URL and has indexed it is checked with the URL Inspection tool, and the list of URLs you want crawled goes in your sitemap.
If you want to get your site's URLs in order, get a quote.