织梦DEDECMS创建sitemap.xml
随着百度平台的开放,很多站长开始创建sitemap.xml提交给百度,用来提高网站收录,很多站长在忙着创建sitemap.xml,今天为大家分享织梦DEDECMS如何创建sitemap.xml,有需要的小伙伴可以参考一下:
织梦本身有sitemap.xml创建功能,不过不太用,下面介绍的sitemap.xml符合百度sitemap.xml收录的标准!
织梦DEDECMS创建sitemap.xml步骤:
1:创建sitemap.xml文件,并放入模板文件夹中:
sitemap.xml里面的代码为:
<?xml version="1.0" encoding="UTF-8" ?>
<urlset xmlns="http://www.google.com/schemas/sitemap/0.9">
<url>
<loc>https://freexyz.cn/</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 row='23' type='top'}
<url>
<loc>https://freexyz.cn{dede:field name='typeurl'/}</loc>
<changefreq>daily</changefreq>
<priority>0.8</priority>
</url>
{/dede:channel}
{dede:arclist row=2000 orderby=pubdate}
<url>
<loc>https://freexyz.cn[field:arcurl/]</loc>
<lastmod>[field:pubdate function=strftime('%Y-%m-%d',@me)/]</lastmod>
<changefreq>monthly</changefreq>
<priority>0.5</priority>
</url>
{/dede:arclist}
</urlset>创建好文件之后,把sitemap.xml放入模板文件夹中。
温馨提示:记得把网址改为自己的网址哦!
上一篇:织梦(DEDECMS)将data目录迁移到web根目录之外
栏 目:DedeCMS
下一篇:织梦dedecms安全漏洞include/common.inc.php漏洞解决方法
本文地址:https://zz.feitang.co/CMSjiaocheng/26863.html
您可能感兴趣的文章
- 11-26织梦dedecms安全漏洞include/common.inc.php漏洞解决方法
- 11-26织梦DEDECMS创建sitemap.xml
- 11-26织梦(DEDECMS)将data目录迁移到web根目录之外
- 11-26dedeCMS发布文档输入tag时,中文逗号自动替换成英文逗号
- 11-26织梦CMS更新广告不显示BUG修复方法
- 11-26dedecms织梦导致CPU峰值现象的解决办法
- 11-26织梦问答模块PHP7报错解决方法
- 11-26织梦cms怎么增加栏目图片
- 11-26织梦生成tags.php排版错乱怎么办
- 11-26织梦diy.php丢失怎么办


阅读排行
推荐教程
- 09-22IIs Web网站的添加及配置
- 11-26织梦(DEDECMS)将data目录迁移到web根目录之外
- 11-26dedecms织梦导致CPU峰值现象的解决办法
- 09-22SqLServerl数据库和用户创建教程
- 11-26dedeCMS 手机站搜索结果不调用电脑版搜索结果模板
- 11-26dede+php低版本出现500错误怎么解决
- 09-22网站目录设置及规划篇
- 09-22PageAdmin环境配置要求
- 11-26织梦CMS更新广告不显示BUG修复方法
- 11-26织梦DEDECMS创建sitemap.xml





