Can anyone explain the difference between the following terms
1. Relative Links in a website
2. Fully Pathed Links
3. Absolute Links
Re: Website Navigation
There are two types of relative links
1)relative to the root links (eg. ). Say your root is <A HREF="http://www.yoursite.com," TARGET=_blank>www.yoursite.com, having the forward slash (/) at the beginning of the url will always start from the root and you specify where to go from there.
2)relative to the directory links (eg. ). Say this link is located on <A HREF="http://www.yoursite.com/folder1/index.html." TARGET=_blank>www.yoursite.com/folder1/index.html. This link will look for a file called "pagename.html" that is located in the folder "folder1".
Absolute links look like <a href="www.yoursite.com/folder1/index.html"> OR <a href="http://www.yoursite.com/folder1/index.html">
Best practice for linking within your site is to use Relative links. Reason being, say you have a three stage setup where you have a development server and stage server and a production server. All three boxes have different root name (eg. dev.yoursite.com, stage.yoursite.com and www.yoursite.com). When you move your site from box to box all your links will still work.
Use absolute links when you are linking outside your site.