Absolute vs. Relative Links

by Shanna on May 22, 2009

A link which shows the full URL of the page being linked at. Some links only show relative link paths instead of having the entire reference URL within the a href tag. Due to canonicalization and hijacking related issues it is typically preferred to use absolute links over relative links.

Example absolute link

<a href=”http://korbyimagery.com/folder/filename.html”>Absolute Link</a>

Example relative link

<a href=”../folder/filename.html”>Relative Link</a>

Leave a Comment

Previous post:

Next post: