Best thing to do in that situation is use relative urls (../includes/blah.cfm) in your CFINCLUDEs. That way, as long as your directory structure stays the same, your site should work perfectly when you just copy it over.
Another thing you can do is set a variable in your application.cfm, like: <CFSET imageDir = "D:\wwwroot\mysite\images\"> Then, in the pages where you access this directory, do it using #imageDir#. When you move the site, just change the once instance of each path defined like this, and voila. This method has problems, though, because if you're on a shared server, you have to figure out what those absolute paths are, by using some getBaseTemplatePath() functions. Kevin Langevin Web Guy In Charge UsWebGuys 954-327-5780 [EMAIL PROTECTED] > -----Original Message----- > From: Les Buchanan [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, January 16, 2002 1:17 PM > To: CF-Talk > Subject: Multiple sites... > > > Hi, > > I'm new on the list and to ColdFusion in general, so take it easy on me. > > I would like to have two (or more) sites on my NT box, one for > staging, and > one for production. For example, I'd like to have a website > (stage.livingscriptures.com) that I do all my pre-production work in, and > then when I'm finished, simply copy everything over to a different > directory, that would be my production site (www.livingscriptures.com). > > This is very simple to do with say, ASP, but I have found difficulty in > getting this to work with ColdFusion. When you're trying to cfinclude > templates, it won't include from the proper directory, without creating > mappings in the ColdFusion administrator, and then using a > variable to store > that mapping. > > My co-worker introduced my to ColdFusion, and I think it's a > GREAT product, > but the inability to do this has frustrated me. Maybe I'm > approaching this > the wrong way. I'd really appreciate it if someone could help me > with this. > Thanks! > > ---Les Buchanan > Newbie ColdFusion Developer > ______________________________________________________________________ Dedicated Windows 2000 Server PIII 800 / 256 MB RAM / 40 GB HD / 20 GB MO/XFER Instant Activation · $99/Month · Free Setup http://www.pennyhost.com/redirect.cfm?adcode=coldfusiona FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists