How do I reference the web root from any location within a web site? For
example, if I am several directories deep in a web site, say
www.domain.com/a/a/a/a, how do I reference a document several levels deep
along a different branch of the web root such as www.domain.com/b/b/b/b?

I know that ../ will get me up one level, but is there a shorthand get to
the root? I have tried ./ with no success. My only recourse has been to
supply the FQDN for every link and I'm sure there is an alternative to
entering http://www.domain.com/etc... for local links. Any suggestions?

Re: Reference web root from any directory? by Kristofer

Kristofer
Fri Mar 11 09:23:34 CST 2005

Hi,

Use /

For example:

<a href="/b/b/default.htm">Default</a>


--
Regards,
Kristofer Gafvert
www.gafvert.info - My Articles and help
www.ilopia.com


Kerry wrote:

> How do I reference the web root from any location within a web site? For
> example, if I am several directories deep in a web site, say
> www.domain.com/a/a/a/a, how do I reference a document several levels deep
> along a different branch of the web root such as www.domain.com/b/b/b/b?
>
> I know that ../ will get me up one level, but is there a shorthand get to
> the root? I have tried ./ with no success. My only recourse has been to
> supply the FQDN for every link and I'm sure there is an alternative to
> entering http://www.domain.com/etc... for local links. Any suggestions?

Re: Reference web root from any directory? by Tom

Tom
Fri Mar 11 09:44:18 CST 2005

"Kerry" <Kerry@discussions.microsoft.com> wrote in message
news:E08B21BD-9C27-465A-97AC-409002D961E5@microsoft.com...
> How do I reference the web root from any location within a web site? For
> example, if I am several directories deep in a web site, say
> www.domain.com/a/a/a/a, how do I reference a document several levels deep
> along a different branch of the web root such as www.domain.com/b/b/b/b?
>
> I know that ../ will get me up one level, but is there a shorthand get to
> the root? I have tried ./ with no success. My only recourse has been to
> supply the FQDN for every link and I'm sure there is an alternative to
> entering http://www.domain.com/etc... for local links. Any suggestions?

A simple "/" will give you the root.

--
Tom Kaminski IIS MVP
http://www.microsoft.com/windowsserver2003/community/centers/iis/
http://mvp.support.microsoft.com/
http://www.iistoolshed.com/ - tools, scripts, and utilities for running IIS