title: Recursively redirect all PDF's with .htaccess rule?
body: <p>I'm trying to come up with a rule that will redirect all PDFs to a different directory recursively, retaining the path aside from the change I'm making.</p>
  
  <p>Initial directory is <em>/wp-content/uploads</em>
  Target directory is <em>/build/wp-content/uploads</em></p>
  
  <p>So /wp-content/uploads/2013/03/LW_Stevens.pdf</p>
  
  <p>Would redirect to /build/wp-content/uploads/2013/03/LW_Stevens.pdf</p>
  
  <pre><code>RewriteEngine On
  RewriteRule ^wp-content/uploads/*/(.+\.pdf)$ build/wp-content/uploads/*/$1 [L]
  </code></pre>
  
  <p>Obviously the /*/ part is wrong, how would I do this correctly?</p>