> Any thoughts on using linking relative to site root when
you have multiple
> sites in separate folders in the wwwroot folder?
Hey, I feel your pain!! I've been wondering the same thing
for years, and
every time I post a question about it, nobody seems to know
what I'm talking
about. I guess you and I are the only ones with multiple
sites to maintain.
Here's what I've come up with:
It depends on your OS.
In WinXP and earlier, I use this file structure:
C:\Inetpub\BaloneyWebSite\, C:\Inetpub\TomatoSoupWebsite\...
Since XP only
supports one website, I have a small utility that changes my
local root
folder in IIS. It resides in the
taskbar by the clock, and it quickly changes the root path. I
don't remember
where I got it, but I'll post a link if you want. You will
view your website
by browsing to
http://localhost/
In Vista, again I use the same file structure, but since
Vista supports
multiple websites, the utility to change the root folder is
not required.
Put the files in the same directory structure, but add a host
header and add
a line in the hosts file to point to it. For example, in IIS,
edit the web
site binding to Type = http, IP Address = All Unassigned,
Port = 80, Host
Header = BaloneyWebSite. Then edit
C:\Windows\System32\drivers\etc\hosts
adding a new line (127.0.0.1 BaloneyWebSite). You can view
your website
locally by
browsing to
http://BaloneyWebSite/
HTH