phpcms无法读取index.html的解决办法(Action does not exist)
2012-09-24 07:59:23 来源:WEB开发网 闂傚倸鍊搁崐鎼佸磹閹间礁纾归柟闂寸绾惧綊鏌熼梻瀵割槮缁惧墽鎳撻—鍐偓锝庝簻椤掋垺銇勯幇顖毿撻柟渚垮妼椤粓宕卞Δ鈧獮濠勭磽閸屾艾鈧懓顫濋妸鈺佺疅缂佸顑欓崥瀣煕椤愵偅绶氱紓鍐╂礋濮婂宕掑▎鎴М濠电姭鍋撻梺顒€绉甸幆鐐哄箹濞n剙濡肩紒鎰殜閺屸€愁吋鎼粹€茬敖婵炴垶鎸哥粔鐢稿Φ閸曨垰鍐€妞ゆ劦婢€濞岊亪姊虹紒妯诲蔼闁稿海鏁诲濠氭晲婢跺﹤宓嗛梺缁樺姈缁佹挳宕戦幘璇叉嵍妞ゆ挻绋戞禍鐐叏濡厧浜鹃悗姘炬嫹

找到一篇需要修改首页生成shtml的帖子。之后我把首页生成文件改成"index.htm",后台生成首页后,可直接访问······单独创建“index.html文件直接读取绝对地址,依然提示“Action does not exist.”这就让我很蛋疼了,不知道是我修改了哪地方导致的这问题······
对下面的目录文件进行修改:
\phpcms\modules\content\classes\html.class.php
查找
/**
* 更新首页
*/
public function index() {
if($this->siteid==1) {
$file = PHPCMS_PATH.'index.html';
//添加到发布点队列
$this->queue->add_queue('edit','/index.html',$this->siteid);
} else {
$site_dir = $this->sitelist[$this->siteid]['dirname'];
$file = $this->html_root.'/'.$site_dir.'/index.html';
//添加到发布点队列
$this->queue->add_queue('edit',$file,$this->siteid);
$file = PHPCMS_PATH.$file;
}
修改成
/**
* 更新首页
*/
public function index() {
if($this->siteid==1) {
$file = PHPCMS_PATH.'index.htm';
//添加到发布点队列
$this->queue->add_queue('edit','/index.htm',$this->siteid);
} else {
$site_dir = $this->sitelist[$this->siteid]['dirname'];
$file = $this->html_root.'/'.$site_dir.'/index.html';
//添加到发布点队列
$this->queue->add_queue('edit',$file,$this->siteid);
$file = PHPCMS_PATH.$file;
}
然后重新就OK了。当然你也可以修改成"index,shtml"。
- ››phpcms V9 所有的中文变量
- ››phpcms v9 sys_auth函数加密原理
- ››phpcms的栏目缓存无限级罗列展示处理方法
- ››无法正常启动Linux故障修复
- ››phpcms系统设置:config.inc.php文件配置说明
- ››phpcms v9 站内外搜索代码
- ››无法打开Win8中IE10 Flash解决办法
- ››phpcms在nginx的rewrite伪静态标准写法
- ››phpcms V9 默认templates主题模板文件目录结构介绍...
- ››phpcms V9 常用文件目录结构
- ››phpcms无法读取index.html的解决办法(Action does...
- ››phpcms频道模板栏目循环调用优化
更多精彩
赞助商链接