httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Arne Jansen <li...@die-jansens.de>
Subject [users@httpd] mod_rewrite: sub-requests and URL decoding
Date Tue, 12 Jun 2012 08:15:05 GMT
Hi,

I have a problem with a rewrite rule like this:

RewriteCond %{LA-U:REMOTE_USER} !^$
RewriteRule ^(/.*)? %{LA-U:ENV:internal_path}$1 [L]

it works well, unless the URL contains '%'-characters. To be more
specific, it only works as long as the decoded URL is still valid.
E.g. a%2525b.txt works, a%25b.txt does not.

So it seems the decoded filename is passed to the subrequest where
it gets decoded again. Can I influence in any way what is passed there?
Shouldn't it be re-encoded before passing on?

Thanks,
Arne

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message