Interesting. When I tried this, however, I got a bad request error
(for missing CFM and missing html). Is this only supported in a
certain version of Apache?

-r

On 4/19/06, Tim Blair <[EMAIL PROTECTED]> wrote:
>
> > Also, I have yet to see a way, on Apache, to do what IIS does,
> > which is to check first if a script exists. AFAIK, on Apache,
> > you simply can't do it.
>
> You should be able to do that using an .htaccess file.  Something like
> this should do:
>
>   RewriteEngine on
>   RewriteCond %{REQUEST_FILENAME} !-f
>   RewriteRule ^(.*)?$ 404.cfm?page=%{REQUEST_URI} [QSA,L]
>
> I guess you can change the RewriteCond rule to only check for .cfm files
> if needed, otherwise you'll get redirection if standard HTML files,
> images, CSS files etc aren't found either.
>
> Tim.
>
> --
> -------------------------------------------------------
>  TB: http://tim.bla.ir/  Tech: http://tech.badpen.com/


----------------------------------------------------------
You are subscribed to cfcdev. To unsubscribe, send an email to 
[email protected] with the words 'unsubscribe cfcdev' as the subject of the 
email.

CFCDev is run by CFCZone (www.cfczone.org) and supported by CFXHosting 
(www.cfxhosting.com).

An archive of the CFCDev list is available at 
www.mail-archive.com/[email protected]


Reply via email to