华夏名网主机5折起,详情访问 jxun.net !每天五分钟,了解电商动态!

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

企业建站 鱼之缘 1798℃ 0评论

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和手机移动)

喜欢 (0)or分享 (0)
发表我的评论
取消评论
表情

Hi,您需要填写昵称和邮箱!

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址