
怎么生成织梦dedecmsCMS网站地图在根目录
1个回答
展开全部
1、首先在网站根目录下建立rss文件夹
2、修改/dede/makehtml_map.php文件
$cfg_cmspath."/data/sitemap.html";
修改为:
$cfg_cmspath."/sitemap.html";
将$cfg_cmspath."/data/rssmap.html";
修改为:
$cfg_cmspath."/rssmap.html";
3、修改/include/arc.rssview.class.php文件将
$murl = $GLOBALS['cfg_cmspath']."/data/rss/".$this->TypeID.".xml";
修改为:
$murl = $GLOBALS['cfg_cmspath']."/rss/".$this->TypeID.".xml";
4、修改/include/sitemap.class.php文件
$typelink = $GLOBALS['cfg_cmsurl']."/data/rss/".$row->id.".xml";
修改为:
$typelink = $GLOBALS['cfg_cmsurl']."/rss/".$row->id.".xml";
此时再到网站后台生成网站地图的时候,就会直接生成到网站根目录了。
2、修改/dede/makehtml_map.php文件
$cfg_cmspath."/data/sitemap.html";
修改为:
$cfg_cmspath."/sitemap.html";
将$cfg_cmspath."/data/rssmap.html";
修改为:
$cfg_cmspath."/rssmap.html";
3、修改/include/arc.rssview.class.php文件将
$murl = $GLOBALS['cfg_cmspath']."/data/rss/".$this->TypeID.".xml";
修改为:
$murl = $GLOBALS['cfg_cmspath']."/rss/".$this->TypeID.".xml";
4、修改/include/sitemap.class.php文件
$typelink = $GLOBALS['cfg_cmsurl']."/data/rss/".$row->id.".xml";
修改为:
$typelink = $GLOBALS['cfg_cmsurl']."/rss/".$row->id.".xml";
此时再到网站后台生成网站地图的时候,就会直接生成到网站根目录了。
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询