I\'m trying to get Matt Wilcox adaptive images to work with CakePHP without success. http://adaptive-images.com/
CakePHP comes with three .htaccess files of it\'s ow
Alright I got it working even if it's perhaps not the most optimal solution there is.
I only changed the htaccess in the /app/webroot
-folder like below
Options +FollowSymlinks
RewriteEngine On
RewriteCond %{REQUEST_URI} !debug_kit
RewriteRule \.(?:jpe?g|gif|png)$ adaptive-images.php [L]
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ index.php [QSA,L]
and added the adaptive-images.php file to app/webroot
It would perhaps be nicer to have the adaptive-images.php file in the Vendor directory but at least it works.
I made two changes in adaptive-images.php
$cache_path = "app/tmp/cache/ai-cache";
$source_file = $document_root.'/app/webroot'.$requested_uri;