auxone
10-29-2009, 07:11 PM
Hi,
I'm using mod_rewrite for "clean URLs". I've noticed that when passing an encoded URL, mod_rewrite automatically decodes it before passing it onto my script.
This is completely unwanted behavior because my script parses the "/" in the clean URL so after decoding it can't tell the different between a real "/" and a %2F.
Does anyone know of a quick fix? I've tried various filters on the Rewrite like B and NE. I don't want to resort to modifying the mod_rewrite module itself and recompiling Apache, and double encoding slashes is not prefered.
Thanks in advance.
(Furthermore, mod_rewrite likes to decode %20 into a + which I hate.)
I'm using mod_rewrite for "clean URLs". I've noticed that when passing an encoded URL, mod_rewrite automatically decodes it before passing it onto my script.
This is completely unwanted behavior because my script parses the "/" in the clean URL so after decoding it can't tell the different between a real "/" and a %2F.
Does anyone know of a quick fix? I've tried various filters on the Rewrite like B and NE. I don't want to resort to modifying the mod_rewrite module itself and recompiling Apache, and double encoding slashes is not prefered.
Thanks in advance.
(Furthermore, mod_rewrite likes to decode %20 into a + which I hate.)