How to not lower QSA parameter on rewrite

Topics: Developer Forum, Project Management Forum, User Forum
Nov 28, 2014 at 12:55 PM
Edited Dec 4, 2014 at 4:54 PM
hi
in my config i have:

Add trailing slash to url and Lowercase

RewriteRule ^/([^.?]+[^.?/])$ /#L$1#E/ [I,R=301]

URL LowerCase

RewriteRule ^/(.*[A-Z].*)$ /#L$1#E [R=301]

rule

RewriteRule ^/category/([^\?\/]+)/((\?.+)|())$ /cat.asp?menu=3&set=$1  [QSA,I,U,L]
now if i have:
/Category/Test/?gclid=AhdHHSdhjfo34
this is rewrite to:
/category/test/?gclid=ahdhhsdhjfo34

i want QSA parameters is not lowercase:
/category/test/?gclid=AhdHHSdhjfo34

how i do?
Dec 4, 2014 at 4:53 PM
i have found this solution:

replace
  RewriteRule ^/(.*[A-Z].*)$ /#L$1#E [R=301]
with
  RewriteRule ^/(.*[A-Z].*)\?(.*)$ /#L$1#E [QSA,R=301]