Directory structures different on development machine vs. install machine.

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



So I have a project called Fred that's a web site. On my machine, the url is
http://localhost/Fred/..... On the final resting place it's
www.fred.com/...

So how do I make the system so that it will work both in my development
environment and the delivered web site? For instance - I want to do a system
transfer somewhere - but I don't want to specify
"../../LoveItOrLeaveIt.aspx" because the directory structure could change.
And if I try and do "/LoveItOrLeaveIs.aspx" it works on the delivered site
but not the development site.

The only thing I can think of is to make a virtual directory that point to
the root and then have everything point to that.

Anybody have any suggestions?

TIA - Jeff.


.