relative path?

admin

Administrator
Staff member
I have an application (.exe) sitting on the (intranet) web server. To execute it I simply hyperlink using href. However, there are associated files (in the same directory) which are required during execution. If the hyperlink is absolute (specific path), there is no problem. But I want the hyperlink to be relative (same directory as home page, with no actual path mentioned). In this case the associated files cannot be found. Is there some way around this? Does the concept of "include" have any relevance? How can this be accomplished?<!--content-->Here's a sample version of my menu using relative links.<br />
<br />
<div class="menu"><br />
<a href=http://www.webdeveloper.com/forum/archive/index.php/"../index.html">Home</a> ·<br />
<a href=http://www.webdeveloper.com/forum/archive/index.php/"index.html">Words</a> · <br />
<a href=http://www.webdeveloper.com/forum/archive/index.php/"../pics/index.html">Pics</a> · <br />
<a href=http://www.webdeveloper.com/forum/archive/index.php/"../geek/index.html">Geek Stuff</a> · <br />
<a href=http://www.webdeveloper.com/forum/archive/index.php/"../links.html">Links</a> · <br />
<a href=http://www.webdeveloper.com/forum/archive/index.php/"../about.html">About</a><br />
</div><br />
<br />
Having "../" in a path has the link going up one in terms of your directory. The ones like for "Words" looks for the index page within the same folder, and if you want to go down one more level you just add the folder name and whatever document you are looking for like this.<br />
<br />
<a href=http://www.webdeveloper.com/forum/archive/index.php/"subfolder/index.html">Sub Folder</a><!--content-->
 
Back
Top