url query string changing after redirect

I had this question after viewing redirect certain certain urls to a subdomain on a different server.

I have a particular problem now which, in the meantime I've found a work-around for, but I don't understand why I'm having this problem. I created a series of rewrite matching redirect rules in the htaccess file that points those urls back to our previous server, which now has a subdomain. I have a set of urls that contain query strings that contain spaces (for instance: www.imj.org.il/artcenter/newsite/en/?artist=Abu Kaf, Ali&list=A). When the url gets redirected, the space in the url gets encrypted to %2520 instead of %20 and because of that, the query string is not recognized. I'd like to know why that extra "52" is inserted into the querystring? Here is my redirect rule:
RewriteRule ^artcenter/newsite/en(.*)$ http://museum.imj.org.il/artcenter/newsite/en/$1 [R=301,NC,L]
I should also add that the redirect is to a windows server which might explain this?
Thanks for your help.
avirAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Steve BinkCommented:
The extra is actually %25, which is '%' sign.  Use the [NE] flag on your rules to prevent this from happening.

Also, if you want the query string to follow along with the redirection, make sure you use the [QSA] flag as well.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
avirAuthor Commented:
That seems to have worked. Thanks for your help.
avirAuthor Commented:
Thank you.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Linux

From novice to tech pro — start learning today.