dedecms在启用多站点支持以后,RSS输出存在bug,例如本站的rss输出链接变成了http://www.xh4t.comhttp://www.xh4t.com/2009/07/zuijinlaotingdian.html看了 一些RSS.htm模板并无差错,看来是include文件存在一些问题,于是找了一下代码终于找到解决的办法了。
打开 \include\arc.rssview.class.php
在33行找到
| $this->TypeFields['typelink'] = $GLOBALS['cfg_basehost'].$this->TypeLink->GetOneTypeUrl($this->TypeFields); |
替换为
| $this->TypeFields['typelink'] = $this->TypeLink->GetOneTypeUrl($this->TypeFields); |
在129行,找到
| $row["fullurl"] = $GLOBALS["cfg_basehost"].$row["arcurl"]; |
替换为
| $row["fullurl"] = $row["arcurl"]; |
