Technical SEO · November 24, 2026

Absolute or relative links: where each one actually matters

This is one of the oldest debates in SEO and one of the ones that generates the most unnecessary work. The short answer: in internal page links, it almost never matters. In canonical, sitemap, feeds and metadata, it matters a lot. The rest is implementation detail.

The difference, in two lines of code

<a href="https://yourdomain.com/services/seo">absolute</a>

<a href="/services/seo">root-relative</a>

The absolute link carries protocol and domain. The relative one starts at the site root (with a slash) or in the current directory (without one). Both take the visitor to the same place. To the browser, the result is identical: it resolves the relative link against the page URL and builds the full address.

Where the two can diverge is in what reaches the search engine in specific situations: when content is copied off the site, when the file is read by a system that does not know the base URL, or when the protocol changes.

Where absolute is required or recommended

There are places where the technical standard expects a full URL and there is no debate:

Absolute is also worth using when the site is served on more than one domain (for example, an old and a new version), because the full URL eliminates any ambiguity about where the content lives.

Where relative is better

In internal navigation links, relative has two practical advantages:

Domain migration without breakage. If every page uses /services/seo, changing domains means changing the server configuration. If every page uses the full domain, every file has to be rewritten or the site keeps pointing at the old address.

Test environment. A site built on localhost:8095 with relative links works the same when published. With absolute links, the links keep pointing at the local environment until someone fixes them.

Bonus: slightly smaller files and less risk of typos in the domain.

The “scraped content” argument, and why it is weak

For years people repeated that relative links are worse because, when someone copies the site text elsewhere, the links break. It is true that they break — but that is not an SEO problem, it is the problem of whoever copied.

If your content was copied, the scraper's link does not point to you anyway. The correct solution for that scenario is not changing the format of the internal link; it is having a proper canonical, publishing first and using removal tools when necessary.

Besides, Google has resolved relative URLs for decades. No official documentation says relative links lose ranking value. What exists is the recommendation that the canonical be absolute — which is another thing.

What actually breaks SEO in internal links

If the goal is avoiding problems, the link format is the smallest of the risks. The four that show up in the real world:

  1. Redirect chains. A link to a URL that redirects to another that redirects to a third. Every hop is a delay and a diluted signal.
  2. http on an https page. An internal link pointing to http:// creates an unnecessary redirect on every click. Use https or a relative path.
  3. Inconsistent trailing slash. /services/seo and /services/seo/ can be treated as different URLs. Pick one standard and redirect the other.
  4. Link to a 404 page. The most common of all and the easiest to monitor with a monthly crawl.

A decent on-page audit catches all four. Swapping relative for absolute fixes none of them.

A pattern that works in practice

So you do not have to decide case by case:

That pattern is simple to explain to whoever writes content and to check in review. It is better than any rule that requires every person to remember the correct format.

Does your site have broken internal links, redirect chains or a relative canonical?

Lopes Connect's free audit analyzes the page you specify and returns the issues with a score and priorities — no signup.

Run the free audit See the audit service

Read also: anchor text in backlinks · do you need to submit your site to Google? · SEO content.