【发布时间】:2012-01-18 06:44:08
【问题描述】:
我尝试在 justhost 上为我的插件域配置 cakephp,当我访问 www.merryflowers.com/pages/home 时出现 404 not found 错误
有人可以帮帮我吗?
以下是我在/webroot/index.php和/webroot/test.php中所做的修改
if (!defined('ROOT')) {
define('ROOT', DS.'home'.DS.'xxx'.DS.'public_html');
}
if (!defined('APP_DIR')) {
define('APP_DIR', 'merryflowers');
}
if (!defined('CAKE_CORE_INCLUDE_PATH')) {
define('CAKE_CORE_INCLUDE_PATH', DS.'home'.DS.'xxx');
}
我需要对 .htaccess 文件进行一些更改吗?以及来自哪个文件夹的 .htaccess 文件?
在 public_html/merryflowers.com/ 下我有: 视图、插件和 webroot 文件夹
谢谢
【问题讨论】:
标签: cakephp http-status-code-404 shared-hosting configure