test
test

Reputation:

Apache RewriteRule

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,

Upvotes: 0

Views: 373

Answers (2)

Gumbo
Gumbo

Reputation: 655319

Try the NE/noescape flag.

Upvotes: 1

Kane
Kane

Reputation: 1430

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

Upvotes: 1

Related Questions