请问解决DEDE开启多站点后生成RSS错误的方法
问题:
- 开启多站点支持绝对网址后,生成RSS会出现错误。
解决方法:
- 修改
arc.rssview.class.php
文件:- 打开
include/arc.rssview.class.php
文件。 - 找到以下代码:
修改为:$this->TypeFields['typelink'] = $GLOBALS['cfg_basehost'].$this->TypeLink->GetOneTypeUrl($this->TypeFields);
-
$this->TypeFields['typelink'] = ($GLOBALS['cfg_multi_site']=='Y') ? $this->TypeLink->GetOneTypeUrl($this->TypeFields) : $GLOBALS['cfg_basehost'].$this->TypeLink->GetOneTypeUrl($this->TypeFields);
- 再找到以下代码:
$row['fullurl'] = $GLOBALS['cfg_basehost'].$row['arcurl'];
- 修改为:
$row['fullurl'] = ($GLOBALS['cfg_multi_site']=='Y') ? $row['arcurl'] : $GLOBALS['cfg_basehost'].$row['arcurl'];
- 打开
更新时间:2025-04-11 01:50:51
转载请注明原文链接:https://www.muzicopy.com/suibi/8623.html