Whoops, my bad.  I bet if you remove the "/" before the "$1" it'll fix
the double slash problem too.  That's what I get for shooting that off
the cuff on a Friday afternoon, immediately before a holiday weekend.

Glad it worked enough to get you going though.

cheers,
barneyb

On Fri, 03 Sep 2004 16:00:52 -0700, Richard Crawford
<[EMAIL PROTECTED]> wrote:
> Barney Boisvert wrote:
>
> > You can't make CF do it, but you can certainly do that with
> > mod_rewrite.  These two rules should be pretty close, though they
> > might not be perfect.  (obviously assume your server has mod_rewrite
> > enabled):
> >
> > RewriteEngine On
> > RewriteRule ^/cfmx(.*\.pl)$ /$1.pl [L]
> >
> > The rewrite phase of Apache's request processing happens before it
> > hand off to JRun/CFMX, so the request will be "moved" out of the CFMX
> > context root before being sent to CF at all.
>
> It worked with a bit of modification:
>
> RewriteRule ^/cfmx(.*\.pl)$ /$1 [L]
>
> This puts two /'s in the URL before the filename for some reason, but if
> I insert another / between cfmx and (.*\.pl), I get a redirection error.
>  This will do for now.  Also, with the .pl after the $1, the URL had
> two ".pl"'s appended. ;-)
>
> Thanks!

--
Barney Boisvert
[EMAIL PROTECTED]
360.319.6145
http://www.barneyb.com
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]

Reply via email to