nope. when iis passes the request to cf, cf looks for the file and if its not there the process ends. it doesn't bother looking for an application.cfm. (alteast thats what I'm assuming)

why can you just change the wwwroot? or move the new site to the current root? cuz not only are people who bookmark going to have this issue, but so will search engines like googl;e who spidered the old version.

-adam

> -----Original Message-----
> From: Burns, John D [mailto:[EMAIL PROTECTED]
> Sent: Thursday, April 15, 2004 02:14 PM
> To: 'CF-Talk'
> Subject: RE: CF
>
> Hmmm, that sucks.  Can I throw a <cferror> tag into the Application.cfm
> to catch the error of the CFM not being there?
>
> John
>
> -----Original Message-----
> From: Adrocknaphobia [mailto:[EMAIL PROTECTED]
> Sent: Thursday, April 15, 2004 10:07 AM
> To: CF-Talk
> Subject: Re: CF
>
> John, if the file doesn't exist on the server, then the application.cfm
> doesn't get executed.
>
> I suggest just changing your wwwroot to the new directory if that
> possible in your case.
>
> -Adam
>
> > -----Original Message-----
> > From: Burns, John D [mailto:[EMAIL PROTECTED]
> > Sent: Thursday, April 15, 2004 01:50 PM
> > To: 'CF-Talk'
> > Subject: CF "File Not Found" Question
> >
> > I have a site where I used to have files in the root directory
> > (www.domain.com) and the client wanted a new site, so we built it and
> > placed it into a directory (www.domain.com/directory)
> >  
> > I put an index.cfm in the root directory which contains a <cflocation>
>
> > to push the user into the directory to see the new site.  However, if
> > users had pages bookmarked in the root site (www.domain.com/page.cfm)
> > and they go to that page, the get a CF error saying "File Not Found:
> > /page.cfm"  So, I added an Application.cfm to the root directory which
>
> > contains nothing but <cflocation> to put the user into the directory,
> > yet, I still see the File Not Found error and don't get re-located.  I
>
> > also have a .htaccess file to redirect 404 errors to the new
> > directory, but I'm guessing that since CF is returning the error, it
> > doesn't actually count as a 404.  If I go to a bogus page, I do get
> > redirected by the .htaccess.
> >  
> > Sooo, my question is, how do I get CF to ignore that the file doesn't
> > exist and just redirect?  I figured the Application.cfm would fire
> > before it even checked for the page and would do the redirect (no such
>
> > luck).  Suggestions/explanations would be great.  Thanks.
> >  
> > John Burns
> >
> >
> >
>
>
>
>
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

Reply via email to