Forum Moderators: phranque

Message Too Old, No Replies

https rewrite causing % encoding to %25

SSL causing double encoding

         

mattg8

12:54 am on Nov 25, 2008 (gmt 0)

10+ Year Member



I am running into a problem with my apache implementation. For some reason, whenever I submit my request via https and proxy to the back end with http using the follwoing rewrite:

RewriteRule ^/(.*)$ [127.0.0.1:85%{REQUEST_URI}...] [P,L,QSA]

it following results in some double encoding of the % signs in the request parameters, turning them into %25.

For example, if the request is:

[example.com...]

the request received on the backend comes out as
/flow.html?_flow=myflow&returnUrl=https%253A%252F%252Fwww.example.com%252Findex.html

Oddly enough, when I do the same thing without SSL (via http) the same issue does not exist.

Any ideas would be greatly appreciated.

jdMorgan

8:13 pm on Nov 30, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Have you looked into using the [NE] flag on the rule?

Jim

mattg8

3:50 pm on Dec 1, 2008 (gmt 0)

10+ Year Member



I had tried this and apparently missed a rule or two. The NE on ALL rules did the trick.

Thanks!