Absolute Path is The path (URL) to a page or file.

http://www.yourdomain.com/your-file-name.jpg is an example of an absolute path. It shows the complete details needed to find a folder or file. Meaning, it can be in the form of a website URL or a folder file path, such as:


Difference between an Absolute Path and a Relative one?

Commonly confused with absolute paths, a relative path has just basically showing ‘where you presently are’. So, in the above examples it would be:

/your-file-name.jpg and /images.

How would I use them?

If you wanted to add a link to another website onto yours, you’ll likely use the absolute path so it includes the domain. However, if you’re looking to link to somewhere else on your own site, you’ll likely just use the relative path, such as ‘/about’!


To conclude...

An Absolute path incudes all details within the URL.

If you change the domain name for a site, all the absolute links will need to change too. A relative link, however, wouldn’t need changing as it just includes the location name!

Back to WordPress glossary Get help with WordPress

Need help with your WordPress site?

If you need to improve your existing site or are looking to commission a new website, call us on 01295 266644 or complete the form - we'll get in touch!