Relative vs Absolute Links

This article outlays the difference between relative and absolute links, which can be important to know when creating hyperlinks on your website. 

Absolute Links
Relative Links

Absolute Links

Absolute Links always contain a full web address, including https://www, the domain name and the permalink of a specific page. When someone clicks on an absolute link, they will be taken to a particular page on a specific website.

Examples for absolute links:


When to use an Absolute Link?

In general you would use absolute links when linking to a different website. 


Relative Links

Relative Links are a path to a specific page on your own website and they don't contain the web address. When a website visitor clicks on a relative link, the browser takes them to that location on the current website. Therefore, relative links can only be used when linking to pages within your own website. Relative links are generally faster to load, as the browser doesn't have to start from scratch.

When linking within your own website, we always recommend to work with relative links. This will ensure that, the links will still work even if you decide to change your domain name at some point. 

Examples for relative links:

  • /home
  • /portfolio
  • /portfolio/weddings

When to use a Relative Link?

You can only use relative links when linking to pages within your own website.

How to retrieve a relative link?

The easiest way is to go to the specific page on your live website, then copy the text after the domain in the browser address bar:




Article is closed for comments.