欢迎您光临本站,如有问题请及时联系我们。

[帝国cms7.0]网站xml地图文件模板(pc和手机移动)

后台-系统设置-扩展变量-手机广告位-内容正文顶部
文章目录[隐藏]

  • 1.pc站xml地图模板
  • 2.手机移动站xml地图模板

1.pc站xml地图模板

<?='<?xml version="1.0" encoding="UTF-8"?>'?> 

<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"> 

<url> 

<loc>http://www.xxxx.cn/</loc> 

<changefreq>always</changefreq> 

<lastmod><?=date("Y-m-d",time())?></lastmod> 

<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>http://www.xxxx.cn<?=$sccurl?></loc>

<changefreq>daily</changefreq> 

<lastmod><?=date("Y-m-d")?></lastmod> 

<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>http://www.xxxx.cn<?=$sccurl?></loc>

<lastmod><?=date('Y-m-d',$bqr[newstime])?></lastmod> 

<changefreq>daily</changefreq> 

<priority>0.8000</priority> 

</url> 

[/e:loop] 

[e:loop={"select * from [!db.pre!]ecms_news order by newstime desc",5000,24,0}] 

<url> 

<loc>http://www.xxxx.cn<?=$bqsr[titleurl]?></loc>

<lastmod><?=date('Y-m-d',$bqr[newstime])?></lastmod> 

<changefreq>daily</changefreq> 

<priority>0.7000</priority> 

</url> 

[/e:loop]  

</urlset> 

2.手机移动站xml地图模板

<?='<?xml version="1.0" encoding="UTF-8"?>'?> 

<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9" xmlns:mobile="http://www.baidu.com/schemas/sitemap-mobile/1/"> 

<url> 

<loc>http://m.xxxx.com/</loc> 

<mobile:mobile type="mobile"/>

<changefreq>always</changefreq> 

<lastmod><?=date("Y-m-d",time())?></lastmod> 

<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>http://m.xxxx.com<?=$sccurl?></loc> 

<mobile:mobile type="mobile"/>

<changefreq>daily</changefreq> 

<lastmod><?=date("Y-m-d")?></lastmod> 

<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>http://m.xxxx.com<?=$sccurl?></loc> 

<mobile:mobile type="mobile"/>

<lastmod><?=date('Y-m-d',$bqr[newstime])?></lastmod> 

<changefreq>daily</changefreq> 

<priority>0.8000</priority> 

</url> 

[/e:loop] 

[e:loop={"select * from [!db.pre!]ecms_news order by newstime desc",5000,24,0}] 

<url> 

<loc>http://m.xxxx.com<?=$bqsr[titleurl]?></loc> 

<mobile:mobile type="mobile"/>

<lastmod><?=date('Y-m-d',$bqr[newstime])?></lastmod> 

<changefreq>daily</changefreq> 

<priority>0.7000</priority> 

</url> 

[/e:loop]  

</urlset> 

转载请注明:昆山SEO服务,专注企业网络营销-李麟 » [帝国cms7.0]网站xml地图文件模板(pc和手机移动

来源:BD营销平台,欢迎分享本文,转载请保留出处和链接!
后台-系统设置-扩展变量-手机广告位-内容正文底部