httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From André Malo ...@perlig.de>
Subject Re: [users@httpd] mod_rewrite turning // into /
Date Fri, 15 Oct 2004 17:04:51 GMT
* CSN <cool_screen_name90001@yahoo.com> wrote:

> I want to have urls like this:
> /link/http://www.apache.org
> 
> rewritten to:
> /link.php?url=http://www.apache.org
> 
> Here's my mod_rewrite line:
> RewriteRule ^link/(.+)$ /link.php?url=$1 [QSA,L]
> 
> It appears that "url" is getting the // changed to a
> single / i.e. "http:/www.apache.org". Any help?

It's in the apache 2 core, which normalizes the url path to single slashes.
You  might have luck with evaluating %{THE_REQUEST} directly.

HTH, nd
-- 
die (eval q-qq[Just Another Perl Hacker
]
;-)
# André Malo, <http://pub.perlig.de/> #

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message