title: Slim Framework 3 RESTful Backend - Serving Images
body: <p>When uploading images on my web application, images are stored in the <code>/public/uploads/</code> directory. For those familiar with Slim Framework 3 the <code>/public/</code> directory is where <code>index.php</code> is stored.</p>
  
  <p>Simply navigating to <code>http://website.com/uploads/image.png</code> does not work for I presume it looks for a Slim 3 route?</p>
  
  <p>In order for me to preview images in when navigating to the image, do I have to make a custom route in my REST application?</p>
  
  <p>.htaccess:</p>
  
  <pre><code>RewriteEngine On
  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteCond %{REQUEST_FILENAME} !-d
  RewriteRule ^ index.php [QSA,L]
  </code></pre>