我的问题是。
我的应用程序在 zend 框架中有一个图像文件夹和裁剪技术,因此当请求裁剪的图像并且之前找到它时,htaccess 将通过调用裁剪模型来处理图像
the file requested is : http://localhost/cmstest/public/contents/userdata/images/100X100/163.png
但服务器无法读取正确的控制器
htacces 代码在这里
Options +FollowSymLinks +ExecCGI
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)/(.*) ../../index/index/app/storage/image/$2/crop/$1 [QSA,L]
</IfModule>
显示的错误是
An error occurred
Page not found
Exception information:
Message: Invalid controller specified (contents)
Stack trace:
#0 /Applications/XAMPP/xamppfiles/htdocs/zend/library/Zend/Controller/Front.php(954): Zend_Controller_Dispatcher_Standard->dispatch(Object(Zend_Controller_Request_Http), Object(Zend_Controller_Response_Http))
#1 /Applications/XAMPP/xamppfiles/htdocs/zend/library/Zend/Application/Bootstrap/Bootstrap.php(97): Zend_Controller_Front->dispatch()
#2 /Applications/XAMPP/xamppfiles/htdocs/zend/library/Zend/Application.php(366): Zend_Application_Bootstrap_Bootstrap->run()
#3 /Applications/XAMPP/xamppfiles/htdocs/cmstest/public/index.php(36): Zend_Application->run()
#4 {main}
Request Parameters:
array (
'controller' => 'contents',
'action' => 'userdata',
'images' => '100X100',
'module' => 'frontend',
)
请帮我 :(