Absolute & Relative URLs

19/07/2023
Absolute URL vs Relative URL

URL (Uniform Resource Locator) is a unique address that identifies a resource on the Internet and there are two types of URL; absolute URL and relative URL.

What is Relative URL

Relative URLs don’t contain protocol (HTTP or HTTPS), the domain name or root directory of the website.

/en/absolute-and-relative-url/

What is Absolute URL

Absolute URLs contain full of URL including protocol (HTTP or HTTPS), the domain name and the path to the resource.

https://juniortoexpert.com/en/absolute-and-relative-url/

Absolute URLs can use from any website but relative URLs can only be use in same website.

FeatureAbsolute URLRelative URL
Contains the complete address of the resourceYesNo
Dependent on the current pageNoYes
Can be used to access resources from any websiteYesNo

Absolute or Relative URLs for SEO

There is no difference between absolute url and relative url for Google search.