Forum Moderators: phranque
1. Virtual interlinking
<img src="/images/filename.gif">
<a href="/index.htm">
<? include("/application.php"); ?>
2. Relative interlinking
<img src="images/filename.gif">
<a href="../../index.htm">
<? include("application.php"); ?>
Virtual linking (correct my terminology if that's wrong) is all based on the root URL, and the latter is all based on the current file's directory. I remember hearing that using the former is bad practice, but I can't remember why.
I would rather use the former, because it would help me make scripts more uniform.
Actually I prefer to prefix the URLs with the absolute path: [example.com...] on my pages.
The good thing about relative URLs is that it does save space and bandwidth. However, I've noticed lately that these relative URLs on a google cache will now try to fetch a page on Google itself! Or it could be a javascript popup - it tries to fetch a page on google.
I don't think the former is bad practice, and in fact I think it's better to put the entire absolute URL in there (http: included). That way there's no way for any browser or UA to get confused.