我计划使用wordpress作为一个网站的cms前端,并在一个会员区(/members)使用zend框架。会员区将100%在zend框架中定制。如何将我的htaccess、index.php或bootstrap配置为将/members文件夹设置为ZFs根目录?谢谢
发布于 2011-01-21 23:29:24
假设你使用的是标准index.php,你只需要把它和.htaccess一起放到/members中,并确保在index.php中定义的路径是正确的(例如,APPLICATION_PATH指向项目的application目录)。
发布于 2011-01-21 18:16:56
zend框架将具有目录结构
project
|
|--public (you can install wordpress site here)
|--library
|--application
|--other stuff您可以将wordpress站点安装在公共文件夹中,并将公共文件夹中的所有内容复制到包括.htaccess在内的目录成员中。而且你不需要修改它的内容(我想是的)
您的新目录结构将如下所示
project
|
|--public_html (you can install wordpress site here)
| |
| |--all your wordpress site here
| |--member
| |---all your zend framework files here
|
|--library
|--application
|--other stuff您需要更改的就是zend框架的index.php文件
defined('APPLICATION_PATH')
|| define('APPLICATION_PATH', realpath(dirname(__FILE__) . '/../../application'));而不是常规的
defined('APPLICATION_PATH')
|| define('APPLICATION_PATH', realpath(dirname(__FILE__) . '/../application'));我必须工作,但我不是很确定(在我的工作中)。
https://stackoverflow.com/questions/4754218
复制相似问题