中国最具竞争力的网络营销咨询、培训及技术服务机构

返回首页 / 手机网站 / 联系我们


商丘网络公司怎样让dedecms生成sitemap.xml

发布时间:2018-04-13 13:31 来源: 作者:admin    点击数:

商丘网络公司怎样让dedecms生成sitemap.xml

1.在后台默认模版中创建sitemap.xml
2.在创建的sitemap.xml中输入如下代码
(gb2312)

<?xml version="1.0" encoding="gb2312"?><urlset><url>    <loc>http://www.sqlongliqi.com/</loc>    <lastmod>{dede:arclist row=1 titlelen=24 orderby=pubdate}    [field:pubdate function=strftime('%Y-%m-%d',@me)/]    {/dede:arclist}</lastmod>    <changefreq>daily</changefreq>    <priority>1.0</priority></url>{dede:channel ' type='top'}<url><loc>http://www.sqlongliqi.com[field:typelink /]</loc><changefreq>daily</changefreq><priority>0.8</priority></url>{/dede:channel}
{dede:arclist row=500 orderby=pubdate}
<url>   
 <loc>http://www.sqlongliqi.com[field:arcurl/]</loc>    
<lastmod>[field:pubdate function=strftime('%Y-%m-%d',@me)/]</lastmod> 
   <changefreq>0.7</changefreq>
   </url>
   {/dede:arclist}
   </urlset>
(utf-9)
<?xml version="1.0" encoding="utf-8"?><urlset><url>    <loc>http://www.sqlongliqi.com/</loc>    <lastmod>{dede:arclist row=1 titlelen=24 orderby=pubdate}    [field:pubdate function=strftime('%Y-%m-%d',@me)/]    {/dede:arclist}</lastmod>    <changefreq>daily</changefreq>    <priority>1.0</priority></url>{dede:channel ' type='top'}<url><loc>http://www.sqlongliqi.com[field:typelink /]</loc><changefreq>daily</changefreq><priority>0.8</priority></url>{/dede:channel}
{dede:arclist row=500 orderby=pubdate}
<url>   
 <loc>http://www.sqlongliqi.com[field:arcurl/]</loc>    
<lastmod>[field:pubdate function=strftime('%Y-%m-%d',@me)/]</lastmod> 
   <changefreq>0.7</changefreq>
  </url>
   {/dede:arclist}
   </urlset>
将里面的域名(www.sqlongliqi.com)换成自己的域名并保存
3生成xml
4.提交给你要提交的搜索引擎 百度 360 搜狗 谷歌 bing 雅虎 等


[商丘网络公司怎样让dedecms生成sitemap.xml]

本文链接:https://www.hncmsqtjzx.com/jzjswz/373.html
tag:
上一篇: 商丘网络公司Windows下连接Linux的ssh工具有哪些 下一篇: 商丘做网站DedeCMS定时自动生成站点地图sitemap.xml的实现方法
相关文章