织梦dedecms网站地图生成名目
发布时间:01/29 来源:未知 浏览:
关键词:
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";
这样就可以生成根名目了,就可以在robots中将data名目屏蔽了,这样就可以很平安的防止data名目的泄露了。