Not sure if this helps, but a simple custom 404.cfm would work. Update the Custom Errors in IIS, create a custom 404.cfm page that looks in a DB for the missing/unfounded URL. For instance you could place in the DB MyWebSite1 will map to www.mydomain.com/mywebsite1, then do a cfLocation in the 404.cfm file to the real URL.
We do this with a lot of success. Makes it easy to bring on new clients without having to create those virtual directories. Again, this only works if you have access to IIS/Web Server custom errors. If you need more info, just ask! Brian -----Original Message----- From: Rick Root [mailto:[email protected]] Sent: Monday, December 06, 2010 1:44 PM To: cf-talk Subject: Virtual Directories and IIS I'm wondering if there's a better way to do what we're doing. Currently, we have about 12,000 web sites, each of which uses a virtual directory that refers to the web root www.mydomain.com/mywebsite1 www.mydomain.com/mywebsite2 etc Some of these sites end up buying domains and they just end up going to www.mywebsite1.com .. but the virtual directory still works. So yeah, we've got 12,000 virtual directories (back in the old days, we actually had 2,000 physical subdirectories with 2,000 identical copies of the files, so the virtual directory method was a vast improvement) that being said, I'm having problems getting my dot net calls to work (a topic for another thread) but this got me thinking.. is there a better way? Could I somehow have a catch-all virtual directory that would prevent me from having to create unique virtual directories for every site? like, in the case www.mydomain.com/mywebsite1/foo.cfm, if there ws no "/mywebsite1/" physical directory, then look for "foo.cfm" in the web root.. but do not REDIRECT (because we rely on "/mywebsite1/" being in the URL so we know which site they're accessing) 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:339823 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm

