onlocal zend server 6 で実行されている私の zend アプリは、すべての画像、css、および javascript ファイルに対して not found を返します。
公共の私の .htaccess には以下が含まれます:
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} -s [OR]
RewriteCond %{REQUEST_FILENAME} -l
RewriteRule ^.*$ - [NC,L]
RewriteRule ^.*$ index.php [NC,L]
routes.ini が含まれています
[production]
routes.default.type = "Zend_Controller_Router_Route_Hostname"
routes.default.route = "dev.localhost.com"
routes.default.defaults.module = "default"
routes.default.defaults.media = "media"
;-------------------------------------------------------------------------------
; Default Route - Default Behaviour
;-------------------------------------------------------------------------------
routes.default.chains.index.route = ":controller/:action/*"
routes.default.chains.index.type = "Zend_Controller_Router_Route"
routes.default.chains.index.defaults.controller = "index"
routes.default.chains.index.defaults.action = "index"
そして、私は
<img src="<?= $this->baseUrl('images/logo.png'); ?>"/>
<link rel="stylesheet" type="text/css" href="<?php echo$this->baseUrl('css/grid.css')?>"/>
<link rel="stylesheet" type="text/css" href="<?php echo $this->baseUrl('css/styles.css')?>" />
<?php $this->headScript()->prependFile($this->baseUrl('js/jquery-ui-1.8.17.custom.js'));
?>
これらはすべて、ベース URL が「/」または「http://dev.localhost.com」に設定された、見つからないというエラーを返します。
どんな助けでも大歓迎です