Absolute & Relative URLs

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.


What is Absolute URL

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


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

Absolute or Relative URLs for SEO

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

] }