> I am new to this multiple domain thing. Am working on a project, where there > multiple domain projects under on webroot. Like > www.abc.com, www.def.com under one root. The folder structure is something > like below: > > E: > webroot > --INCLUDES > --IMAGES > --image.gif > -- www.abc.com > --folder1 > --index.cfm > -- www.def.com
Well, first, it might be useful to figure out what exactly you mean by "webroot" here. Generally, it means the folder that actually maps to a web server's HTTP root directory. For example, if you have a single web server that corresponds to a single domain, you might have something like this: c:\inetpub\wwwroot\ which maps to http://www.yoursite.com/ In your above example, does the directory e:\webroot\www.abc.com map to http://www.abc.com/? If so, the webroot is e:\webroot\www.abc.com, not e:\webroot. > So the above two diff domains share two common folders. When I use an include > file of form .cfm, I can get it to work. But > somehow the images are not displayed. I tried the following syntaxes > > Suppose I want to access images from index.cfm under www.abc.com/folder1, i > tried the following: > > <img src="../../IMAGES/image.gif">(does not work) > <img src="E:/webroot/IMAGES/image.gif) (also does not work. The image symbol > is shown but the entire image is not shown). Assuming that your webroot is e:\webroot\www.abc.com, neither of those will work. The second won't work no matter what your webroot is, because a browser isn't going to be able to resolve a directory path on the server. You'd have to create a virtual directory for each of those virtual web servers (www.abc.com, www.def.com). Then, you'd be able to resolve URLs using the virtual directory as your starting point: <img src="/images/image.gif"> Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ http://training.figleaf.com/ Fig Leaf Software is a Veteran-Owned Small Business (VOSB) on GSA Schedule, and provides the highest caliber vendor-authorized instruction at our training cent ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:341161 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm

