roboter/slim-image-resize-example/master/.htaccess
RewriteEngine on #check if image is in cache RewriteCond %{REQUEST_METHOD} ^GET$ RewriteCond %{REQUEST_URI} ^/img/(.+)$ RewriteCond %{DOCUMENT_ROOT}/cache/%{REQUEST_URI} -f RewriteRule ^(.+)+$ cache/$1 [L,QSA] # SLIM Framework RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^ index.php [QSA,L]
Files
![DOCUMENT_ROOT, GET, REQUEST_FILENAME, REQUEST_METHOD, REQUEST_URI](https://www.askapache.com/s/u.askapache.com/htaccess-file/2016/github/roboter/slim-image-resize-example-htaccess.png)