title: URL REWRITE with & with out Query String
body: <p>Facing an issue while using with URLrewrite of tuckey..my requirement is like
      when the url contains dev/auth/dev/ what ever it comes after should be redirected to another url including query strings</p>
  
  <p>ex: http://:8080/dev/auth/dev/student/exam
      should redirect to
          http://:8080/college/student/exam
      if the url contains query strings it should also get appended in the last</p>
  
  <pre><code>ex: http://&lt;myhost&gt;:8080/dev/auth/dev/student/exam?internal=mepa&amp;external=pega
  should redirect to
      http://&lt;myhost&gt;:8080/college/student/exam?internal=mepa&amp;external=pega
  my url rewrite looks like
          &lt;rule&gt;
          &lt;from&gt;/dev/auth/dev/(.*)&lt;/from&gt;
          &lt;to type="permanent-redirect" last="true"&gt;%{context-path}/college/$1&lt;/to&gt;
       &lt;/rule&gt;
  this is working fine for with out query strings
  request you to help - with the rule for with query strings
  </code></pre>
  
  <p>I tried options like - but not working</p>
  
  <pre><code> &lt;rule&gt;
          &lt;condition type="query-string" operator="equal"&gt;&lt;/condition&gt;
          &lt;from&gt;/dev/auth/dev/(.*)&lt;/from&gt;
   &lt;to type="permanent-redirect" last="true"&gt;%{context-path}/college/$1?%{query-string}&lt;/to&gt;
       &lt;/rule&gt;
  </code></pre>