Web Servers General Talk - double-slash issue

This is Interesting: Free IT Magazines  
Home > Archive > Web Servers General Talk > March 2007 > double-slash issue





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author double-slash issue
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

Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2009 webservertalk.com