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.
Relative URLs don’t contain protocol (HTTP or HTTPS), the domain name or root directory of the website.
/en/absolute-and-relative-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.
Feature | Absolute URL | Relative URL |
---|---|---|
Contains the complete address of the resource | Yes | No |
Dependent on the current page | No | Yes |
Can be used to access resources from any website | Yes | No |
There is no difference between absolute url and relative url for Google search.