Does application.cfc run even if there is no cfm file? I was under the assumption that it didn't.
On 3/20/07, Peterson, Chris <[EMAIL PROTECTED]> wrote: > You could just make an application.cfc, stick it in the root of your > deleted folder with this code: > > <cffunction name="onRequest" returntype="void"> > <cfargument name="thePage" type="string" > required="true"> > <cflocation url="www.mysite.com"> > </cffunction> > > > > -----Original Message----- > From: Jake. [mailto:[EMAIL PROTECTED] > Sent: Tuesday, March 20, 2007 9:21 AM > To: CF-Talk > Subject: Site shutdown and avoiding CF 404 errors? > > I've recently taken down one of my CF sites, but looking at the logs, > I'm still getting a bunch of hits to non-existent pages. Since they're > CF pages, they're throwing CF errors. I think this may actually be > slowing my server. > > How can I set up the empty directory to capture any 404 page and > redirect to a static home page so that it doesn't throw an error? > > Thanks! > Jake > > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Create Web Applications With ColdFusion MX7 & Flex 2. Build powerful, scalable RIAs. Free Trial http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJS Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:273105 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

