| Laurent 2007-03-30, 7:19 am |
| Hi
I'm trying to make some url-rewriting on Apache 2.
It seems that Apache automatically replaces double-slashes with single
slash.
My problem is that my urls are going to make some redirections, so
with double-slashes inside.
Let me take an example 
I want to redirect
http://myserver.com/lolo/3/http://www.someurl.com
to
http://myserver.com/3_redir.php?url...www.someurl.com
so I make something like RewriteRule ^([0-9]+)/(.*)$
http://myserver.com/$1_redir.php?url=$2 [NE]
the problem is that the first url is redirect to
http://myserver.com/3_redir.php?url...www.someurl.com (note the
single slash).
And I don't know in advance if I'll gonna receive zero, one, or
several double-slashes inside...
Any clue please, I can't find anything on that kind of a problem...
Thanks !
Laurent
|