0

I have an encoding problem, using the Apache rewrite rule below:

RewriteRule ^/somethingx/somethingy/somethingx_somethingz(.*) /somethingx/somethingy/somethingx_somethingy/$1 [L,R=301]

The Rewrite rule works fine but except it is encoding '?' characters in the request as '%3f' characters in the response.

Does anyone know why this is?

Many Thanks,

Cem Kalyoncu
  • 14,120
  • 4
  • 40
  • 62

2 Answers2

1

Try to add [L,QSA,R=301]

Kane
  • 1,420
  • 2
  • 8
  • 5
1

Try the NE/noescape flag.

Gumbo
  • 643,351
  • 109
  • 780
  • 844