On Thu, 6 Jan 2005 19:15:02 -0800, CAG <CAG DeleteThis @discussions.microsoft.com>
wrote:
>Here is the situation
>
>Running IIS 6.0 on a Windows server 2003 box with one IP address
>Have multiple websites that needed to be created
>
>www.root.com
>www.bus.com
>www.emp.root.com
>
>So we handled the multiple websites by using document headers
>
>Here is the directory structure
>
>inetpub
> wwwroot
> bus
> emp
> images
> bus
> emp
> index.htm
>
>What is the best way (or a way besides a absolute link) to link to the
>images from the web site "bus"?
> linking to a image these way will not work /images/emp/test.gif
Best would be to rethink your directory structure and put an images
folder in each site, keeping all files relevant to a site under the
root folder. Otherwise you need a virtual directory pointing to the
correct location.
>Also linking to a stylesheet has it's problems
<font color=purple> > <a style='text-decoration: underline;' href="http://www.bus.com</font" target="_blank">www.bus.com</font</a>>
> <link rel="stylesheet" href="index.css" type="text/css"> with index.css
>in the root of bus will not work
Explain "will not work" because that's exactly how you would link a
stylesheet in the root folder into a web page file in the same root
folder.
Unless you're not really doing multiple sites and you have all sites
pointing to the wwwroot folder as their root. If you have three
sites, that are actually three different sites, you should have three
different root folders and three sets of folders. And if by "document
headers" you don't mean Host Headers, then see:
HOW TO: Use Host Header Names to Configure Multiple Web Sites in
Internet Information Services 6.0:
<a style='text-decoration: underline;' href="http://support.microsoft.com/?id=324287" target="_blank">http://support.microsoft.com/?id=324287</a>
Jeff<!-- ~MESSAGE_AFTER~ -->
>> Stay informed about: help with images