title: URLrewriteFilter tuckey redirect
body: <p>I am trying to use <code>UrlRewriteFilter</code> to do a redirect. As we are moving servers and infrastructure all the time to develop our in house cloud solutions we plan to use a lot of this.</p>
  
  <p>My problem is I have a URL like</p>
  
  <blockquote>
    <p>https:// google.com/web-app/servlet?<strong>request-parameters&amp;values</strong></p>
  </blockquote>
  
  <p>I need to redirect all the <code>URL</code>s which has a value for a particular parameter to a different server.</p>
  
  <p>so a URL like :</p>
  
  <blockquote>
    <p>https:// google.com/administrator/servlet/ej.processOrder?sec=100&amp;geo=appointment&amp;cus=dubai</p>
  </blockquote>
  
  <p>If the parameters contain <code>cus=dubai</code>, I need to redirect it to </p>
  
  <blockquote>
    <p><a href="https://hotmail.com/servlet/ej.processOrder?sec=100&amp;geo=appointment&amp;cus=dubai" rel="nofollow">https://hotmail.com/servlet/ej.processOrder?sec=100&amp;geo=appointment&amp;cus=dubai</a></p>
  </blockquote>
  
  <p>I have tried the following but it doesn't seem to work</p>
  
  <pre class="lang-xml prettyprint-override"><code>&lt;urlrewrite use-query-string="true"&gt;
      &lt;rule match-type="wildcard"&gt;
          &lt;name&gt;Redirect requests to cases&lt;/name&gt;
          &lt;description&gt;&lt;/description&gt;
          &lt;from&gt;/administrator/servlet/**?**&lt;/from&gt;
          &lt;to type="redirect" last="true"&gt;http://hotmail.com:8080/servlet/$1?&amp;amp;cus=dubai&amp;amp;$2&amp;amp;$3&amp;amp&lt;/to&gt;
      &lt;/rule&gt; 
  &lt;/urlrewrite&gt;
  </code></pre>
  
  <p>Thanks for the help.</p>