网站站长们应当都了解sitmap针对一个站点的关键性,网站设定百度搜索sitemap.xml,可以协助大家百度收录,让检索模块更为的掌握你的网站(同时要留意对文档里权重值的设定),下边就讲讲在王国cms里边如何设定sitmapsitemap.xml。
开启王国后台管理,频道—自定网页页面-提升自定网页页面
挑选:立即网页页面式 设定网页页面名字为sitemap.xml ,改动文档名叫:../../sitemap.xml (网站根目录) 网页页面內容填好下边编码:
?= ?xml version= 1.0 encoding= UTF-8 ? ?
urlset xmlns= schemas/sitemap/0.9
url
loc [!--news.url--] /loc
lastmod ?php echo date( Y-m-d ? /lastmod
changefreq daily /changefreq
priority 1.000 /priority
/url
[e:loop={ select * from [!db.pre!]enewsclass order by myorder ,0,24,0}]
?
if($bqr[ classurl ]== )
{
$sccurl=$public_r[ newsurl ].$bqr[ classpath ]. /
}
else
{
$sccurl=$bqr[ classurl ]. /
}
?
url
loc ?=$sccurl? /loc
changefreq daily /changefreq
priority 0.8000 /priority
/url
[/e:loop]
[e:loop={ select * from [!db.pre!]enewszt order by ztid ,0,24,0}]
?
if($bqr[ zturl ]== )
{
$sccurl=$public_r[ newsurl ].$bqr[ ztpath ]. /
}
else
{
$sccurl=$bqr[ zturl ]. /
}
?
url
loc ?=$sccurl? /loc
lastmod ?=date( Y-m-d ,$bqr[newstime])? /lastmod
changefreq monthly /changefreq
priority 0.6000 /priority
/url
[/e:loop]
[e:loop={ select * from [!db.pre!]ecms_news order by newstime desc ,0,24,0}]
url
loc ?=$bqsr[titleurl]? /loc
lastmod ?=date( Y-m-d ,$bqr[newstime])? /lastmod
changefreq monthly /changefreq
priority 0.5000 /priority
/url
[/e:loop]
/urlset
设定好后储存:更新自定网页页面
好啦,王国cms仿站之sitmap制作进行。
Copyright © 广州凡科互联网科技有限公司 版权所有 粤ICP备10235580号
全国服务电话:4000-399-000 传真:021-45545458
公司地址:广州市海珠区工业大道北67号凤凰创意园