SEO FAQ

What is relative vs absolute links?

Trust level: Proven and confirmed

When designing a site, you will always face the question of whether you should use relative or absolute links. Later in this answer I will explain the benefits of each but first here is a definition:

Relative: Relative links usually look something like index.html or /folder/page.html. The way the page knows where to go is all relative to the page the link is placed on. A link to index.html for example, will only work if the file is found in the current folder.

Absolute: Absolute links usually look something like http://www.example.com/page.html. This is a full url and the linked to page will be found regardless of where that link is located on the site.

Which you use depends on the following:

Speed: When your browser goes to find a page with a relative url it looks within the existing site. When it uses an absolute url it leaves the site for an instant and "refinds" the page. This means when it comes to speed, relative is the way to go.

Ease of Design: When you are designing a site using notepad, the danger with relative urls is that if you move a folder, it can break your entire site. As each page depends on another, if you are not a find and replace whiz, absolute may be your best bet.

SEO: This is the one area that I would place firmly in "Theory or Assumption". The truth is that we know broken links can hurt you so the most important is to choose a technique of linking that works best for your site. One of the better case for Absolute Links can be seen here
 
Answer provided by:

yfs1

SEO FAQ

  Submit an answer or add information
to the question: What is relative vs absolute links?


Only the top high quality submissions are approved. If you don't know SEO it is not needed that you waste your time here.

Trust level:
It is important that you select the correct one.
Answer:
Thousands of people will read what you write here and you represent it with your name.
Only unique content, no cut and paste (I will check with Google - don't want this site be hitten by the duplicate content filter).
Don't write something that was already answered to this question earlier but you may add information to earlier answers.
Any promotion for any company/person etc. will be edited out.
HTML can be used but sparingly. Use <em> instead of <strong> to emphasize words. But feel free to use headings, lists and vital neutral links.
Name:
Personal name, company name or forum nick name only. This is not for your keywords, sorry.
URL:
Only accepted to site related to SEO and you.
For example: SEO company, personal SEO oriented blogg or forum profile of SEO forum.
E-mail:
Optional. If you provide one I can contact you with editing questions and let you know if your answer was approved.

Please verify that all is ok before submitting.



SEO FAQ

Although great efforts are taken to ensure the answers posted in this FAQ are true, no guarantee is made that it is so and no responsibility is taken by this site nor the authors concerning your rankings or SEO activities.