With a rewrite rule, if rewriting from /somesite/foo.cfm to /foo.cfm, 'somesite' will *not* appear in your cgi.script_name variable (you will see '/foo.cfm'). You can however pass the value to the request as a url parameter, e.g.
/somesite/foo.cfm -> /foo.cfm?site=somesite (or some other scheme that you may come up with) HTH Dominic On 6 December 2010 21:43, Rick Root <rick.r...@gmail.com> wrote: > > On Mon, Dec 6, 2010 at 3:50 PM, Russ Michaels <r...@michaels.me.uk> wrote: > > > > > Well if each site is different and have its own files then you need a > > unique > > URL and a folder in which to store the files, so I can't see how you can > > avoid either a real or a virtual directory. > > However if every site uses the same codebase, then you could use some url > > rewriting to allow your code to handle the different sites. > > > > Each site uses the same code base, and tt already handles it because I > currently use 12,000 virtual directories that point back to the code base > in > the web root. The code itself gets the site information from the name it > finds in the cgi SCRIPT_NAME variable. > > Here's an example: www.classcreator.com/Saline-MI-1990 > > I was thinking about using ISAPI Rewrite, as suggested by someone else, but > I'm afraid that would actually cause the site name "Saline-MI-1990" to be > invisible to Coldfusion (would it still be part of the cgi.script_name?) > > Rick > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| 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:339876 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm