title: Rewrite both domain and path
body: <p>I want to redirect one specific url like:</p>
  
  <pre><code>www.example.com/test/ex.gif
  </code></pre>
  
  <p>to</p>
  
  <pre><code>static.example.com/ex.gif
  </code></pre>
  
  <p>How can i do this in .htaccess? </p>