When uploading images on my web application, images are stored in the /public/uploads/
directory. For those familiar with Slim Framework 3 the /public/
directory is where index.php
is stored.
Simply navigating to http://website.com/uploads/image.png
does not work for I presume it looks for a Slim 3 route?
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?
.htaccess:
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^ index.php [QSA,L]