title: HTTP headers for jpg files after mod_rewrite
body: <p>I'm using Apache's <code>mod_rewrite</code> to route requests for JPG files to a directory outside my web root.  </p>
  
  <p>It generally has been fine, but there are a few images that do not display. I then realized that when I use PHP's <code>get_headers()</code> function on my image URLs, they are all returning<br>
  <code>Content-Type: text/html; charset=UTF-8</code> instead of the proper <code>image/jpeg</code> header types.</p>
  
  <p>I have tried explicitly setting the <code>Content-Type: image/jpeg</code> header and still, none of my images return the correct headers - although most do display correctly, but I'm not sure why.</p>
  
  <p>How can I assure a JPG file is sent with the correct header when redirecting via <code>mod_rewrite</code>?</p>