httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Joshua Slive <>
Subject RE: [users@httpd] Help with redirect/rewrite
Date Fri, 21 Nov 2003 15:46:14 GMT

On Fri, 21 Nov 2003, Timothy Arnold wrote:

> Sorry, this is what appears to happen.
> I have two redirects:
> /fpp
> /fpp/

Redirect does substring matches on the url-path, so /fpp matches /fpp/ or
even /fppfoobar.  The part after /fpp is tagged onto the end of the target

The way you have it now, the second redirect is never used because the
first one matches against both /fpp and /fpp/.

It would probably work if you reversed the order of the two Redirects.

But a cleaner way to do it is

RedirectMatch /fpp/?

RedirectMatch uses regular expressions rather than substring matches.

Depending on the version, Redirect(Match) may not handle query strings, in
which case you'd need:

RewriteEngine On
RerwiteRule ^/fpp/?


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