增加自定义页面
文件名及存放目录:../../sitemap/sitemap.xml
<?='<?xml version="1.0" encoding="UTF-8"?>'?> <urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"> <url> <loc>http://www.wdzzz.com[!--news.url--]</loc> <lastmod><?=date("Y-m-d");?></lastmod> <changefreq>daily</changefreq> <priority>1.000</priority> </url> [e:loop={'select classid,classname,classpath,wburl from [!db.pre!]enewsclass where bclassid=0 and showclass=0 and (classid<>52 and classid<>24) order by myorder',0,24,0}] <?php if(empty($bqr[wburl])) { $sccurl= $public_r[newsurl].$bqr[classpath]; } else { $sccurl= $bqr[wburl]; } ?> <url> <loc>http://www.wdzzz.com<?=$sccurl?>/</loc> <priority>0.6000</priority> </url> [/e:loop] [listshowclass]'0',25,1,0[/listshowclass] 模板在后面 [e:loop={"select * from [!db.pre!]ecms_news order by newstime DESC",0,24,0}] <url> <loc>http://www.wdzzz.com<?=$bqsr[titleurl]?></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_shop order by newstime DESC",0,24,0}] <url> <loc>http://www.wdzzz.com<?=$bqsr[titleurl]?></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_movie order by newstime DESC",0,24,0}] <url> <loc>http://www.wdzzz.com<?=$bqsr[titleurl]?></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_baojia order by newstime DESC",0,24,0}] <url> <loc>http://www.wdzzz.com<?=$bqsr[titleurl]?></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_download order by newstime DESC",0,24,0}] <url> <loc>http://www.wdzzz.com<?=$bqsr[titleurl]?></loc> <lastmod><?=date('Y-m-d',$bqr[newstime])?></lastmod> <changefreq>daily</changefreq> <priority>0.8000</priority> </url> [/e:loop] </urlset>
循环栏目列表的标签模板
[listshowclass]'0',25,1,0[/listshowclass]
[!--empirenews.listtemp--]
<!--list.var1-->
[!--empirenews.listtemp--]
<url> <loc>http://www.wdzzz.com[!--classurl--]</loc> <priority>0.6000</priority> </url>
sitemap
2023-10-14 26sitemap是网站地图,sitemap可以让搜索引擎更简单的了解网站结构,并能让搜索引擎蜘蛛快速爬取到网站的主要内容.所以sitemap是网站优惠非常重要的一步,这里我的站...
- WordPress禁止用户访问sitemap,只允许搜索引擎蜘蛛访问方法 [2023-10-14]
- 百度XML地图一键推送工具 [2023-07-30]
- PHP生成sitemap网站地图代码 [2021-09-22]
- 自动生成sitemap地图php代码 [2021-03-10]
- 百度站长工具取消sitemap索引型sitemap文件提交 [2020-09-24]