An absolute URL is a web address written out in full, with the scheme (such as https), the host name and the path, so it points to exactly one place no matter where it appears. An example is https://www.example.co.uk/shoes/red-boots/. A relative URL such as /shoes/red-boots/ leaves out the start and relies on the page it sits in to fill the gap.
What is an absolute URL? #
Every URL is built from parts. MDN’s guide to what a URL is names them: the scheme (http or https), the authority (the domain and, if needed, a port), the path, optional parameters after a ?, and an optional anchor after a #. An absolute URL carries the scheme and the domain. That makes it self-contained. You can paste it into an email, a sitemap or a chat with an AI assistant and it still works.
MDN also notes that in the address bar a URL has no context, so a full address is needed there. Inside an HTML page the browser already knows the page’s own address, so it can complete a shorter one.
What are the parts, in plain words? #
| Part | Example | What it does |
|---|---|---|
| Scheme | https |
Says which protocol to use. See HTTPS vs HTTP. |
| Host | www.example.co.uk |
Names the server. See hostname and subdomain. |
| Path | /shoes/red-boots/ |
Names the page on that server. See URL slug. |
| Query | ?size=6 |
Extra key and value pairs. See URL parameter. |
| Fragment | #reviews |
Jumps to a spot in the page. MDN says the browser never sends it to the server. |
How is it different from a relative URL? #
The formal rules are in RFC 3986, the internet standard for URI syntax. It defines an absolute URI as a scheme, a colon and the rest of the address, with no fragment. It says a relative reference only works when a base address is known, and it sets out exactly how a reader turns one into a full address. Its own test table uses the base http://a/b/c/d;p?q:
gbecomeshttp://a/b/c/g(same folder);/gbecomeshttp://a/g(from the root of the host);../gbecomeshttp://a/b/g(one folder up);//gbecomeshttp://g(a different host, same scheme).
So a relative link changes meaning when the page that holds it moves. An absolute one does not.
Why does it matter for search? #
Search engines read a page out of context, one address at a time. In a few places Google asks for full addresses:
- Canonical tags. In its canonical URL guide, Google asks for absolute paths in
rel="canonical". It adds that relative paths are supported but “can cause problems in the long run”. The same advice covers the canonical HTTP header. See canonical tag. - Sitemaps. Google’s page on building a sitemap says to use fully-qualified, absolute URLs, because Google tries to crawl each one exactly as listed. See XML sitemap.
- Hreflang. Google’s guide to localised versions says alternate URLs must be fully qualified, including http or https. It gives
//example.com/fooand/fooas wrong. See hreflang.
Plain links in your menus and body text can be relative. Browsers and crawlers resolve them fine. The risk sits in signals that tell a search engine which version of a page is the real one, where a single mistake can split link equity or cause duplicate content.
Why does it matter for AI answers? #
AI assistants often see your words without your page around them. A text chunk, a llms.txt file, a Markdown copy or a JSON-LD block may be stored and read later, apart from the address it came from. A link written as /returns/ means nothing once the base is lost. Written as a full address, it can still be followed and cited. That is one small, practical part of answer engine optimisation: make every fact and every link survive being copied.
The same goes for Open Graph tags and image addresses in schema markup. They are read by other systems, so give them the whole address.
Common mistakes #
- Staging addresses left in. A site copied from a staging site keeps canonicals that point to the test host.
- Mixed schemes. Canonicals or sitemap entries still on http after a move to https, which forces a redirect on every read.
- Protocol-relative links.
//example.com/pageis not fully qualified, and Google’s hreflang guide rules it out. - The wrong host. Mixing
wwwand non-www, so two addresses compete. See root domain. - Tracking codes in canonicals. A full address that carries UTM parameters is absolute but still wrong.
A worked example #
A small shop sells boots at https://www.example.co.uk/boots/red/. Its theme writes the canonical as /boots/red, with no trailing slash. A crawler that finds the page at https://example.co.uk/boots/red/?ref=email resolves that to https://example.co.uk/boots/red, a third version. Now there are three addresses for one product. The fix is one line:
<link rel="canonical" href="https://www.example.co.uk/boots/red/">
Then the shop lists the same full address in its sitemap and in its hreflang tags, and links to it the same way inside the site. One page, one address, everywhere.
How do I check it? #
- Run a page through our canonical checker to see whether the canonical is absolute and matches the live address.
- Use our sitemap checker to spot relative or http entries in your sitemap.
- If you serve more than one language, test with our hreflang checker.
- Follow any old addresses through our redirect checker, and break a long address down piece by piece in our URL parser.
- For the wider picture, start a free SEO audit. All 56 of our free tools are listed on the free tools page.
Questions #
Should every internal link be absolute? #
No. Relative links are normal and resolve correctly. Use full addresses where the value is read on its own: canonicals, sitemaps, hreflang, Open Graph, structured data and feeds such as an RSS feed.
Does an absolute URL help rankings? #
Not by itself. It removes doubt about which address is the real one, which is part of good technical SEO.
Is a URL with a #fragment absolute? #
RFC 3986’s strict absolute form has no fragment. In daily use people still call it a full URL.
Related words #
Sources #
- MDN: What is a URL?, checked 24 November 2026
- RFC 3986: Uniform Resource Identifier (URI): Generic Syntax, checked 24 November 2026
- Google Search Central: How to specify a canonical URL, checked 24 November 2026
- Google Search Central: Build and submit a sitemap, checked 24 November 2026
- Google Search Central: Tell Google about localized versions of your page, checked 24 November 2026
Updated 24 November 2026 by URSY.
Cite this page: Absolute URL. URSY. Updated 25 November 2026. https://ursy.com/wiki/absolute-url/ · Section links
Tools for this
- LiveAI Readiness Checkeris your site ready for ChatGPT, Gemini, Claude? Score + fixesRun the check →
- LiveAI Bot Checkerwhich AI bots your robots.txt lets inRun the check →
- LiveRobots.txt Checker + Generatortest any address against your rules, or write new onesRun the check →
- LiveSchema Markup CheckerRun the check →