Hi Sean,

Yes I am aware that a rewrite rule can do the trick, but it's just that I'd
like to do it the I believe it should be done ;-)

> Explain exactly what it is you are trying to do at a high level.
I'd like my website to server the correct http response when a document is
moved, i.e. a 302 for permanent redirect.
So in my .htaccess file I have for example
Redirect permanent /somefile.htm http://www.tacofleur.com/file/

The problem is, when I request the file and look at the log file I see a 200
response, because the request is passed to ColdFusion I believe. ColdFusion
then throws an error but not with the right status code.
So really what I am after is similar behavior to IIS, you can tell it to
check if the file exists before you pass it on to CF, I think that would
solve my problem, and apache would finally use the Redirect rule in the
.htaccess file...


Taco Fleur
http://www.tacofleur.com/index/blog/
0421 851 786
Tell me and I will forget
Show me and I will remember
Teach me and I will learn 


> -----Original Message-----
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On Behalf 
> Of Sean A Corfield
> Sent: Tuesday, 23 December 2003 4:27 AM
> To: CFAussie Mailing List
> Subject: [cfaussie] RE: Check if file exists Apache
> 
> 
> On Dec 22, 2003, at 12:20 AM, Taco Fleur wrote:
> > nobody using Apache then?
> 
> Yes.
> 
> > I know in IIS there is an option to check if the file exists before
> > passing it on to CF, now how do I do that with Apache?
> 
> Well, you'd have to get Apache to handle the request and then 
> delegate 
> it to CF which is not possible with Apache 1.3 and is tricky 
> even with 
> Apache 2.0.
> 
> > I have specified some 302 redirects in the .htaccess file, but the
> > request gets passed directly to CF, and CF throws the 
> error, which is 
> > not what I want, I want Apache to do the redirect..
> 
> Explain exactly what it is you are trying to do at a high level.
> 
> On macromedia.com we have redirects that take effect before requests 
> are passed to CF because we use rewrite/proxy to pass requests to CF 
> rather than the mod_jrun connector. It may be that mod_jrun gets the 
> request too early in the Apache request lifecycle for you to 
> intercept 
> it.
> 
> Sean A Corfield -- http://www.corfield.org/blog/
> 
> "If you're not annoying somebody, you're not really alive."
> -- Margaret Atwood
> 
> 
> ---
> You are currently subscribed to cfaussie as: 
> [EMAIL PROTECTED] To unsubscribe send a blank email to 
> [EMAIL PROTECTED]
> 
> MXDU2004 + Macromedia DevCon AsiaPac + Sydney, Australia 
http://www.mxdu.com/ + 24-25 February, 2004


---
You are currently subscribed to cfaussie as: [EMAIL PROTECTED]
To unsubscribe send a blank email to [EMAIL PROTECTED]

MXDU2004 + Macromedia DevCon AsiaPac + Sydney, Australia
http://www.mxdu.com/ + 24-25 February, 2004

Reply via email to