httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Joshua Slive <jsl...@gmail.com>
Subject Re: [users@httpd] escaped input mod_rewrite
Date Sat, 30 Oct 2004 18:21:19 GMT
On Sat, 30 Oct 2004 20:53:20 +0300, Vadim N. Lyalikov
<vadim-lyalikov@yandex.ru> wrote:
> Server version: Apache/1.3.9 (Win32)

I hope that's a typo.

> I have:
>    Already nonescaped url as *input* to mod_rewrite RewriteRule, e.g.
>    .../slash/inside_filename.html
> I need:
>    Escaped (as it is in REQUEST_URI) url:
>    .../slash%2Finside_filename.html

Then just use the %{REQUEST_URI} directly in a RewriteCond and use
whatever backreferences (%1, %2, etc) you need in the RewriteRule.

Joshua.

---------------------------------------------------------------------
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