title: mod_rewrite to mask url
body: <p>I'm using WP, &amp; I want to use a <code>mod_rewrite</code> rule such that all images from <code>wp-content/uploads</code> folder shows a different URL.</p>
  
  <p>eg: </p>
  
  <p><code>www.example.com/wp-content/uploads/image.jpeg</code> --->
  <code>www.example.com/media/image.jpeg</code></p>
  
  <p>I've placed a rule in <code>.htaccess</code> but it returns a 404 error.</p>
  
  <pre><code>RewriteRule ^wp-content/uploads/(.*)$ /media/$1 [L,NC,R]
  </code></pre>
  
  <p><a href="http://pastebin.com/JDVtaeTV" rel="nofollow noreferrer">Here's the <code>.htaccess</code> code.</a></p>