According to :
.htaccess rewrite image file to php script
I am trying to Rewrite an image to an action, in cakephp 2.5. The .htaccess used is the one inside /app/webroot/ according to this post: Adaptive images CakePHP htaccess
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^ index.php [L]
RewriteRule ^img/logo.png$ /users/display_details [NC,L]
</IfModule>
The result displayed is 'missing controller' page, with.
<?php
class ImgController extends AppController {
}
Any guess to make this working ? Thanks.