roboter/slim-image-resize-example/master/.htaccess - Htaccess File

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]

On Github License

Files

Download PDF of Htaccess file
DOCUMENT_ROOT, GET, REQUEST_FILENAME, REQUEST_METHOD, REQUEST_URI

Comments

Apache