草根斗 發表於 2023-11-8 00:00:00

解决Dedecms生成RSS地图地址出错全都多了一个网址的问题

<p>
        <span style='font-family: tahoma, arial, "Microsoft YaHei"; font-size: 14px;'>DEDE织梦CMS生成RSS地图全都多了一个网址,打开生成的data/rss/*.xml发现链接都加变成了如下的格式: </span></p>
<div class="msgheader" style='margin: 3px auto 0px; padding: 0px 3px; outline: none; line-height: 21.6px; clear: both; border-width: 1px; border-style: solid; border-color: rgb(0, 153, 204); background: rgb(246, 251, 255); overflow: hidden; font-family: tahoma, arial, "Microsoft YaHei";'>
        <p class="right">
                <span><u>复制代码</u></span></p>
        <p>
                代码如下:</p>
</div>
<p class="msgborder" style='margin: 0px auto 3px; padding: 0px 3px; outline: none; line-height: 25.2px; font-size: 14px; clear: both; border-right: 1px solid rgb(0, 153, 204); background: rgb(221, 237, 251); overflow: hidden; border-left: 1px solid rgb(0, 153, 204); word-break: break-all; border-bottom: 1px solid rgb(0, 153, 204); word-wrap: break-word; font-family: tahoma, arial, "Microsoft YaHei";'>
        <br>
        http://www.jb51.net/ http://www.jb51.net/data/rss/16.xml <br>
        http://www.jb51.net/ http://www.jb51.net/data/rss/15.xml <br>
        http://www.jb51.net/ http://www.jb51.net/data/rss/14.xml <br>
        http://www.jb51.net/ http://www.jb51.net/data/rss/59.xml <br>
        http://www.jb51.net/ http://www.jb51.net/data/rss/49.xml </p>
<p>
        <br style='font-family: tahoma, arial, "Microsoft YaHei"; font-size: 14px;'><span style='font-family: tahoma, arial, "Microsoft YaHei"; font-size: 14px;'>这种情况下,就是域名被重复生成了一次,导至RSS地址出错。其实对于这个BUG,处理方法很简单,如下: </span><br style='font-family: tahoma, arial, "Microsoft YaHei"; font-size: 14px;'><br style='font-family: tahoma, arial, "Microsoft YaHei"; font-size: 14px;'><span style='font-family: tahoma, arial, "Microsoft YaHei"; font-size: 14px;'>将PLUS目录下RSS.HTM 文件源码中fullurl改为arcurl即可解决问题原来的 </span><br style='font-family: tahoma, arial, "Microsoft YaHei"; font-size: 14px;'><br style='font-family: tahoma, arial, "Microsoft YaHei"; font-size: 14px;'><span style='font-family: tahoma, arial, "Microsoft YaHei"; font-size: 14px;'>RSS.HTM 的地址代码是:&lt;link&gt;&lt;/link&gt; </span><br style='font-family: tahoma, arial, "Microsoft YaHei"; font-size: 14px;'><br style='font-family: tahoma, arial, "Microsoft YaHei"; font-size: 14px;'><span style='font-family: tahoma, arial, "Microsoft YaHei"; font-size: 14px;'>我们只需要改成:&lt;link&gt;&lt;/link&gt; </span><br style='font-family: tahoma, arial, "Microsoft YaHei"; font-size: 14px;'><br style='font-family: tahoma, arial, "Microsoft YaHei"; font-size: 14px;'><span style='font-family: tahoma, arial, "Microsoft YaHei"; font-size: 14px;'>就可以了。</span></p>
頁: [1]
查看完整版本: 解决Dedecms生成RSS地图地址出错全都多了一个网址的问题