Images logging as 404s with Zend Framework
Posted
by azz0r
on Stack Overflow
See other posts from Stack Overflow
or by azz0r
Published on 2010-04-29T17:44:00Z
Indexed on
2010/04/29
17:47 UTC
Read the original article
Hit count: 305
Hello,
Due to Zend rewriting URL's to module/controller/action, its reporting that images are coming through as a 404.
Here is the error:
[_requestUri:protected] => /images/Movie/124/thumb/main.png
[_baseUrl:protected] =>
[_basePath:protected] =>
[_pathInfo:protected] => /images/Movie/124/thumb/main.png
[_params:protected] => Array
(
[controller] => images
[action] => Movie
[124] => thumb
[module] => default
)
[_rawBody:protected] =>
[_aliases:protected] => Array
(
)
[_dispatched:protected] => 1
[_module:protected] => default
[_moduleKey:protected] => module
[_controller:protected] => images
[_controllerKey:protected] => controller
[_action:protected] => Movie
[_actionKey:protected] => action
Here is my HTACCESS
SetEnv APPLICATION_ENV development
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} -s [OR]
RewriteCond %{REQUEST_FILENAME} -l [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^.*$ - [NC,L]
RewriteRule ^.*$ index.php [NC,L]
I guess what I need todo is put some sort of image or /design detection so its not routing to index.php
Ideas?
© Stack Overflow or respective owner