title: How can I redirect from one url to another using Tuckey URL rewriting?
body: <p>I've two domain names e.g. <code>www.1st-domain.com</code> and <code>www.2nd-domain.com</code>
  I want to write a Tuckey URL Rewrite rule to redirect any request that goes to <code>www.1st-domain.com</code> to <code>www.2nd-domain.com</code></p>
  
  <p>E.g. if someone hits <code>www.1st-domain.com/sample</code> it should be redirected to <code>www.2nd-domain.com/sample</code></p>
  
  <p>I'm trying something like:</p>
  
  <pre><code>&lt;rule&gt;
          &lt;name&gt;Domain Name Check&lt;/name&gt;
          &lt;condition name="host" operator="equal"&gt;www.1st-domain.com&lt;/condition&gt;
          &lt;from&gt;^(.*)&lt;/from&gt;
          &lt;to type="redirect"&gt;http://www.2nd-domain.com$1&lt;/to&gt;
      &lt;/rule&gt;
  </code></pre>
  
  <p>It is not working. What am I doing wrong? Please guide.</p>