httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Joshua Slive <>
Subject Re: [users@httpd] Issues with Rewrite
Date Thu, 02 Sep 2004 22:54:23 GMT
On Thu, 02 Sep 2004 13:52:38 -0700, Richard Crawford
<> wrote:
> I have the following bit of code in my httpd.conf file:
> RewriteEngine on
> RewriteCond %{THE_REQUEST} !=*.pl
> RewriteRule /DLC/ /cfmx/DLC/ [L]
> This is support to redirect all requests for a URL containing DLC to
> /cfmx/DLC, *unless* the file requested is a Perl file.
> Unfortunately, it doesn't seem to work at all.  I've tried browsing to
>, expecting to see, but
> this didn't happen.

Well, "/DLC" does not match "/DLC/" to start with.  And using "="
implies an exact text match, which is not what you want.

What you probably want is something more like

RewriteCond %{THE_REQUEST !\.pl$
RewriteRule ^/DLC(.*) /cfmx/DLC$1 [L]


The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message