龙母礼铺大宾 發表於 2023-8-14 00:00:00

dedecms 移动文章后,原来生成的HTML依然存在解决方法

<p>
        <span style='font-family: tahoma, arial, "Microsoft YaHei"; font-size: 14px;'>这个可能是一个小BUG,不知道多份重复静态HTML是否会对搜索引擎有不良影响,这个需要做SEO的高手们来回答。我前天应坛里一个兄弟的要求,查了查,找到了这个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;'>打开dede\archives_do.php,找到第240行(没做过修改的DEDE V5 ), </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;'>插入 DelArc($arcid,true,0); </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><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;'>$arcid = ereg_replace(‘[^0-9]‘,”,$arcid); </span><br style='font-family: tahoma, arial, "Microsoft YaHei"; font-size: 14px;'><span style='font-family: tahoma, arial, "Microsoft YaHei"; font-size: 14px;'>DelArc($arcid,true,0); </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;'>$tables = GetChannelTable($dsql,$arcid,’arc’);?</span></p>
頁: [1]
查看完整版本: dedecms 移动文章后,原来生成的HTML依然存在解决方法