title: Redirect to full URL with htaccess RewriteRule
body: <p>I want to load images from production website if they don't exist on my local environment, for that, I have this htaccess rule:</p>
  
  <pre><code>RewriteEngine On
  RewriteCond %{REQUEST_FILENAME} !-d
  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteRule uploads/(.*)$ http://www.productionserver.com/uploads/$1 [R=302,L,NC]
  </code></pre>
  
  <p>The problem:</p>
  
  <h2>Original URL:</h2>
  
  <p><a href="http://localhost:8080/myproject/uploads/image.jpg" rel="nofollow noreferrer">http://localhost:8080/myproject/uploads/image.jpg</a></p>
  
  <h2>Output:</h2>
  
  <p><a href="http://localhost:8080/myproject/http://www.productionserver.com/uploads/image.jpg" rel="nofollow noreferrer">http://localhost:8080/myproject/http://www.productionserver.com/uploads/image.jpg</a></p>
  
  <h2>Desired output:</h2>
  
  <p><a href="http://www.productionserver.com/uploads/image.jpg" rel="nofollow noreferrer">http://www.productionserver.com/uploads/image.jpg</a></p>
  
  <p>What must I change in order to achieve that?</p>