httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Fabian Keil <freebsd-lis...@fabiankeil.de>
Subject Re: [users@httpd] Redirecting /foo//bar to /foo/bar without creating a loop
Date Thu, 16 Feb 2006 14:43:12 GMT
Krist van Besien <krist.vanbesien@gmail.com> wrote:

> On 2/14/06, Fabian Keil <freebsd-listen@fabiankeil.de> wrote:

> > Using *? results in a server error and I have no better idea how
> > to make * ungreedy.
> >
> > Now I use:
> >
> > RewriteRule ^([^/]*)/{2,}(.*$) http://www.fabiankeil.de/$1/$2 [R=Permanent,L]
> 
> Maybe like this.
> RewriteRule ^(.*[^/])/{2,}(.*$) http://www.fabiankeil.de/$1/$2 [R=Permanent,L]

Doh, I didn't think of that one. Thanks again for your help.

Fabian
-- 
http://www.fabiankeil.de/

Mime
View raw message