(Possible it works as designed, but I’m sure it was working before updating to ZF 1.11.x.)
I am trying to “print” an image to the browser, but when I construct the URL like this:
webserver/index/get-image/PARAM1/xyz/IMAGE/1.jpg
I get a 404 error from the server
webserver/index/get-image/IMAGE/1.jpg/PARAM1/xyz
Works..
Any ideas?
The 404-error is most likely because you’ve defined in the web server rules (e.g. .htaccess) that urls ending with .jpg should not be rewritten to index.php (e.g.
RewriteRule ^[\w/\%]*(?:\.(?!(?:js|ico|gif|jpg|png|css|html)$)[\w\%]*$)? /index.php [I])When using Apache, the following should work:
For more information, go to http://framework.zend.com/manual/en/zend.controller.router.html