Dedecms栏目绑定二级域名RSS文件地址URL错误
解决方法:
修改文件:/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"]; |