Dede将网站地图sitemap,RSS都生成到根目录
登录织梦后台,找到文件管理器,打开文件管理器,在根目录下新建rss文件夹,在更新rss文件时会用到

修改根目录下管理员文件夹(默认是dede)下的makehtml_map.php文件
中的$cfg_cmspath."/data/sitemap.html";
和$cfg_cmspath."/data/rssmap.html";
去掉data/


修改根目录下include下面的arc.rssview.class.php和sitemap.class.php
在arc.rssview.class.php
中找到$murl = $GLOBALS['cfg_cmspath']."/data/rss/".$this->TypeID.".xml";
去掉data/


在sitemap.class.php
中找到$typelink = $GLOBALS['cfg_cmsurl']."/data/rss/".$row->id.".xml";
和$typelink = $GLOBALS['cfg_cmsurl']."/data/rss/".$row->id.".xml";
去掉data/



回到生成界面,点击生成。在更新RSS文件时,若不更进行更新,提示出错 DedeTag Engine Create File False,则有可能是根目录下未建立rss文件夹,新建rss文件夹即可解决。

顶(1)
踩(0)
- 最新评论