怎么修改织梦dedecms自带的网站地图路径
很多用DEDECMS做站的朋友,为避免将data目录内的东西随便外泄,在robots中将data目录屏蔽了,但是DEDE默认的网站地图却是在 data下,屏蔽掉这个文件夹的话搜索引擎就无法抓取到网站地图,这不利于SEO优化,那么有没有好的方法呢,让DEDE生成的网站地图放在系统根目录下 面。答案肯定是有的。默认的情况下,网址地图是放在如下路径下的。
站点地图的模板:templets/plus/sitemap.htm
rss地图的模板:templets/plus/rssmap.htm


2、再将根目录下include文件中的arc.rssview.class.php里$murl = $GLOBALS['cfg_cmspath']."/data/rss/".$this->TypeID.".xml";的/data去掉。



最后,进入织梦后,点击生成,地图和RRS生成即可。
本文网址:https://www.dedexuexi.com/dedejiaocheng/azsy/91.html
本站部分文章搜集与网络,如有侵权请联系本站,转载请说明出处。