title: Force a file or image to download using .htaccess
body: <p>I have been trying to force images to download using PHP Headers but there have been multiple problems.</p>
  
  <p>So, instead, how can I use <code>.htaccess</code> so that when I link to an image like:</p>
  
  <pre><code>&lt;a href="wallpapers/image.jpg"&gt;Download&lt;/a&gt;
  </code></pre>
  
  <p>...instead of opening that file in browser, the file is actually downloaded and saved to the user's computer.</p>
  
  <p>I am already using .htaccess in my project to rewrite URLs if that affects anything.</p>