在domain.com
中创建子域后,我上传了我的项目zend.domain.com
。所以最初我的代码是在domain.com/zend
。 当我尝试运行它给我这些错误的项目:上传到子域时出现Zend Framework错误
Warning: include_once(Zend/View.php) [function.include-once]: failed to open stream: No such file or directory in /home/domain/public_html/zend/library/Zend/Loader.php on line 146
Warning: include_once() [function.include]: Failed opening 'Zend/View.php' for inclusion (include_path='/home/domain/public_html/zend/application/../library:/home/domain/public_html/zend/library:.:/usr/lib/php:/usr/local/lib/php') in /home/brainbud/public_html/zend/library/Zend/Loader.php on line 146
Fatal error: Class 'Zend_View' not found in /home/brainbud/public_html/zend/library/Zend/Application/Resource/View.php on line 69
这里是我的.htaccess
:
Options +FollowSymLinks
RewriteEngine on
RewriteRule ^\.htaccess$ - [F]
RewriteRule ^(blog|forum)($|/) - [L]
RewriteCond %{REQUEST_URI} =""
RewriteRule ^.*$ /public/index.php [NC,L]
RewriteCond %{REQUEST_URI} !^/public/.*$
RewriteRule ^(.*)$ /public/$1
RewriteCond %{REQUEST_FILENAME} -f
RewriteRule ^.*$ - [NC,L]
RewriteRule ^public/.*$ /public/index.php [NC,L]