The SEOniverse

What is an absolute link?

An absolute link is a hyperlink written in HTML which contains the full url as opposed to just part of it.

An absolute link defines the location of a document using the entire instructions for where it is located. An absolute link can be found from anywhere on the web. This is an example of an absolute link:

This gives the browser all the necessary information for where to find the webpage on the web.

Absolute links differ from relative links which offer only part of the url and can only be located relative to where they are located, for example:


The browser won't be able to locate this address from anywhere on the internet, but it will look in the directory of the site it's already to find a match. From within the domain "", both these links will point to the same place, but from an external site, only the top one will work.

Why use absolute links?

When linking to an external page, absolute links have to be used as they give the browser all the information they need to locate the correct file in the web. If you just give the browser part of the information, as with a relative link, it won't know where to go – unless the file is located within the same domain it is already on.

Should you use absolute or relative urls on your site?

A webmaster will probably tell you to use relative urls as it makes their job a lot easier.  Relative links certainly are useful as if you change your site name and root domain, you don't have to go through the entire site updating all the links.

However, SEOs  would say that relative urls should not be used as it could make their job a lot more difficult.

For example, if you use a testing platform on and your real website on and you link to your contact page using a relative url (/contact/), how would the browser might not know if the page you really mean is or Your testing ground could end up getting crawled and indexed causing major duplicate content problems for your website.

You can read more about this issue on SEO company Yoast's strongly worded article on why relative URLs should be forbidden for web developers.

Back to the SEO glossary →