mod_rewrite redirect, how to keep url encoding utf8

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi.

I've got some problem with mod_rewrites redirect behaviour.
I'll got some urls which may have some query parameters which are utf8 encoded 
like this:

/abcd/u1?myparam1=h%C3%A4llo

It works fine.

Now there should be some short urls which match to the long url above:

RewriteRule ^/ef(.*)$ /abcd/u1$1 [R,L]

The result is somehow different, the utf8 encoded parameter gets uri encoded 
again, so that the result looks like this (% => %25):

/abcd/u1?myparam1=h%25C3%25A4llo

which is not the result i've expected.
Any hints? Why it gets encoded again if mod_rewrite is participating?
Or is this "correct" behaviour that utf8 encoded uri is url encoded again?

thx

Torsten

Attachment: smime.p7s
Description: S/MIME cryptographic signature


[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux