Mike Lewis
Programmer
Suppose my site has a directory named RootDir. Below that, there's another directory named ArticleDir.
RootDir contains a file named doc.html, which I want to link to from various points in the site.
To reference the file from a page in RootDir, I would do this:
To reference it from a file in ArticleDir, I would have to go up one level:
My question is: Is there any way of specifying an absolute path rather than the relative ones shown here? In other words, I want to reference the document in the same way regardless of which level I'm on.
I know I could do it by referencing the URL, but I'd like to find a way that would without having to know the final URL of the site.
I hope this makes sense.
Mike
__________________________________
Mike Lewis (Edinburgh, Scotland)
Visual FoxPro tips, advice, training, consultancy
Custom software for your business
RootDir contains a file named doc.html, which I want to link to from various points in the site.
To reference the file from a page in RootDir, I would do this:
Code:
<a href="doc.html">Click here</a>
To reference it from a file in ArticleDir, I would have to go up one level:
Code:
<a href="[b][blue]../[/blue][/b]doc.html">Click here</a>
My question is: Is there any way of specifying an absolute path rather than the relative ones shown here? In other words, I want to reference the document in the same way regardless of which level I'm on.
I know I could do it by referencing the URL, but I'd like to find a way that would without having to know the final URL of the site.
I hope this makes sense.
Mike
__________________________________
Mike Lewis (Edinburgh, Scotland)
Visual FoxPro tips, advice, training, consultancy
Custom software for your business