title: Apache mod rewrite all .zip files from my root to another domain
body: <p>I have a website containing some <code>.zip</code> files in its <code>root</code>, and a folder called <code>/files/</code> containing other <code>.zip</code> files.</p>
  
  <p>I moved all those files to another server, but I don't want to break my links, so I need to redirect <code>.zip</code> files requests arriving to my <code>root</code> and my <code>/files/</code> folder to another subdomain. I may want in the future to have a different folder on my server containing <code>.zip</code> files, so I need to redirect only</p>
  
  <pre><code>mydomain.com/*.zip
  mydomain.com/files/*.zip
  </code></pre>
  
  <p>I wrote the rule for <code>/files/</code> and it works well (yes from that folder I need all kind of files for now, from the root only <code>.zip</code> files):</p>
  
  <pre><code>RewriteRule ^files/(.*) http://myotherdomain.com/$1 [QSA,R=301]
  </code></pre>
  
  <p>But I'm stuck about doing the same with all requests for <code>.zip</code> files arriving to the <code>root</code> of my domain...any suggestion?</p>