www-apache-bugdb mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dgau...@hyperreal.org
Subject Re: mod_rewrite/1440: Rewrite has problems with urls such as "http://foo/bar//goo.html" (double //'s)
Date Fri, 21 Nov 1997 10:19:30 GMT
[In order for any reply to be added to the PR database, ]
[you need to include <apbugs@Apache.Org> in the Cc line ]
[and leave the subject line UNCHANGED.  This is not done]
[automatically because of the potential for mail loops. ]

Synopsis: Rewrite has problems with urls such as "http://foo/bar//goo.html" (double //'s)

State-Changed-From-To: open-closed
State-Changed-By: dgaudet
State-Changed-When: Fri Nov 21 02:19:28 PST 1997
mod_rewrite is doing what you're asking it to.  The
url "http://eddie.sierra.com//img" doesn't have a trailing
/, so it can't match "^/img/(.*)".  Try this:

RewriteRule ^/*img(.*) http://www.sierra.com/img$1


View raw message