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
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]


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

i want QSA parameters is not lowercase:

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

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