网站地图怎么做?dedecms网站地图制作方法听语音
网站地图怎么生成?下面分享织梦dedecms系统网站地图的生成方式,怎么制作网站地图,方法很简单。下面介绍一下网站地图优化方法及制作方法。工具/原料一个网站
方法/步骤
第一步
登录网站后台
https://s4.51cto.com/images/blog/202106/22/7c21b0465e2dc198c9530471838de884.gif?x-oss-process=image/watermark,size_16,text_QDUxQ1RP5Y2a5a6i,color_FFFFFF,t_100,g_se,x_10,y_10,shadow_90,type_ZmFuZ3poZW5naGVpdGk=
第二部
修改根目录下你的管理员文件夹(默认是dede)下的makehtml_map.php文件。
将17行的
$cfg_cmspath."/data/sitemap.html";
改为
$cfg_cmspath."/sitemap.html";
将22行的
$cfg_cmspath."/data/rssmap.html";
改为
$cfg_cmspath."/rssmap.html";
17行是普通网站地图,22行是RSS的网站地图
https://s4.51cto.com/images/blog/202106/22/7c21b0465e2dc198c9530471838de884.gif?x-oss-process=image/watermark,size_16,text_QDUxQ1RP5Y2a5a6i,color_FFFFFF,t_100,g_se,x_10,y_10,shadow_90,type_ZmFuZ3poZW5naGVpdGk=
https://s4.51cto.com/images/blog/202106/22/7c21b0465e2dc198c9530471838de884.gif?x-oss-process=image/watermark,size_16,text_QDUxQ1RP5Y2a5a6i,color_FFFFFF,t_100,g_se,x_10,y_10,shadow_90,type_ZmFuZ3poZW5naGVpdGk=
https://s4.51cto.com/images/blog/202106/22/7c21b0465e2dc198c9530471838de884.gif?x-oss-process=image/watermark,size_16,text_QDUxQ1RP5Y2a5a6i,color_FFFFFF,t_100,g_se,x_10,y_10,shadow_90,type_ZmFuZ3poZW5naGVpdGk=
第三步
修改根目录下include下面的arc.rssview.class.php
将71行
的$murl = $GLOBALS['cfg_cmspath']."/data/rss/".$this->TypeID.".xml";
改为
$murl = $GLOBALS['cfg_cmspath']."/rss/".$this->TypeID.".xml";
https://s4.51cto.com/images/blog/202106/22/7c21b0465e2dc198c9530471838de884.gif?x-oss-process=image/watermark,size_16,text_QDUxQ1RP5Y2a5a6i,color_FFFFFF,t_100,g_se,x_10,y_10,shadow_90,type_ZmFuZ3poZW5naGVpdGk=
https://s4.51cto.com/images/blog/202106/22/7c21b0465e2dc198c9530471838de884.gif?x-oss-process=image/watermark,size_16,text_QDUxQ1RP5Y2a5a6i,color_FFFFFF,t_100,g_se,x_10,y_10,shadow_90,type_ZmFuZ3poZW5naGVpdGk=
https://s4.51cto.com/images/blog/202106/22/7c21b0465e2dc198c9530471838de884.gif?x-oss-process=image/watermark,size_16,text_QDUxQ1RP5Y2a5a6i,color_FFFFFF,t_100,g_se,x_10,y_10,shadow_90,type_ZmFuZ3poZW5naGVpdGk=
第四步
修改根目录下include下的sitemap.class.php
将57行
的$typelink = $GLOBALS['cfg_cmsurl']."/data/rss/".$row->id.".xml";
改为
$typelink = $GLOBALS['cfg_cmsurl']."/rss/".$row->id.".xml";
将94行的
$typelink = $GLOBALS['cfg_cmsurl']."/data/rss/".$row->id.".xml";
改为
$typelink = $GLOBALS['cfg_cmsurl']."/rss/".$row->id.".xml";
https://s4.51cto.com/images/blog/202106/22/7c21b0465e2dc198c9530471838de884.gif?x-oss-process=image/watermark,size_16,text_QDUxQ1RP5Y2a5a6i,color_FFFFFF,t_100,g_se,x_10,y_10,shadow_90,type_ZmFuZ3poZW5naGVpdGk=
https://s4.51cto.com/images/blog/202106/22/7c21b0465e2dc198c9530471838de884.gif?x-oss-process=image/watermark,size_16,text_QDUxQ1RP5Y2a5a6i,color_FFFFFF,t_100,g_se,x_10,y_10,shadow_90,type_ZmFuZ3poZW5naGVpdGk=
https://s4.51cto.com/images/blog/202106/22/7c21b0465e2dc198c9530471838de884.gif?x-oss-process=image/watermark,size_16,text_QDUxQ1RP5Y2a5a6i,color_FFFFFF,t_100,g_se,x_10,y_10,shadow_90,type_ZmFuZ3poZW5naGVpdGk=
第五步
修改/templets/default模板文件head.htm
在11行左右找到
网站地图
RSS订阅
改为
网站地图
RSS订阅
https://s4.51cto.com/images/blog/202106/22/7c21b0465e2dc198c9530471838de884.gif?x-oss-process=image/watermark,size_16,text_QDUxQ1RP5Y2a5a6i,color_FFFFFF,t_100,g_se,x_10,y_10,shadow_90,type_ZmFuZ3poZW5naGVpdGk=
https://s4.51cto.com/images/blog/202106/22/7c21b0465e2dc198c9530471838de884.gif?x-oss-process=image/watermark,size_16,text_QDUxQ1RP5Y2a5a6i,color_FFFFFF,t_100,g_se,x_10,y_10,shadow_90,type_ZmFuZ3poZW5naGVpdGk=
https://s4.51cto.com/images/blog/202106/22/7c21b0465e2dc198c9530471838de884.gif?x-oss-process=image/watermark,size_16,text_QDUxQ1RP5Y2a5a6i,color_FFFFFF,t_100,g_se,x_10,y_10,shadow_90,type_ZmFuZ3poZW5naGVpdGk=
https://s4.51cto.com/images/blog/202106/22/7c21b0465e2dc198c9530471838de884.gif?x-oss-process=image/watermark,size_16,text_QDUxQ1RP5Y2a5a6i,color_FFFFFF,t_100,g_se,x_10,y_10,shadow_90,type_ZmFuZ3poZW5naGVpdGk=
第六步
进入后台,更新网站地图,更新RSS文件,更新主页。
https://s4.51cto.com/images/blog/202106/22/7c21b0465e2dc198c9530471838de884.gif?x-oss-process=image/watermark,size_16,text_QDUxQ1RP5Y2a5a6i,color_FFFFFF,t_100,g_se,x_10,y_10,shadow_90,type_ZmFuZ3poZW5naGVpdGk=
第七步
网站地图制作完毕
文档来源:51CTO技术博客https://blog.51cto.com/lxw1844912514/3060101
页:
[1]