帝国CMS自动万能生成sitemap方法,适用手机版生成。适用后台填写的是不完整网址。
登录网站的后台http://你的域名/e/admin/
进入后台栏目 =》增加自定义页面 =》选择直接页面,页面名称为:网站地图,文件名修改为 ../../sitemap.xml
<a href=https://www.fangzhan100.com/diguocmsjiaocheng.html target=_blank class=infotextkey>帝国CMS</a>自动万能生成sitemap方法,适用手机版生成
内容填写如下:(注意将示例中:http://www.fangzhan.org修改为自己的域名)
<?='<?xml version="1.0" encoding="UTF-8"?>'?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
<url>
<loc>https://www.fangzhan100.com/</loc>
<changefreq>daily</changefreq>
<priority>1.0</priority>
</url>
<url>
<loc>https://www.fangzhan100.com/rd/</loc>
<changefreq>daily</changefreq>
<priority>0.8</priority>
</url>
<url>
<loc>https://www.fangzhan100.com/society/</loc>
<changefreq>daily</changefreq>
<priority>0.8</priority>
</url>
<url>
<loc>https://www.fangzhan100.com/ent/</loc>
<changefreq>daily</changefreq>
<priority>0.8</priority>
</url>
<url>
<loc>https://www.fangzhan100.com/sports/</loc>
<changefreq>daily</changefreq>
<priority>0.8</priority>
</url>
<url>
<loc>https://www.fangzhan100.com/haiwai/</loc>
<changefreq>daily</changefreq>
<priority>1.0</priority>
</url>
<url>
<loc>https://www.fangzhan100.com/qiwen/</loc>
<changefreq>daily</changefreq>
<priority>0.8</priority>
</url>
<url>
<loc>https://www.fangzhan100.com/tech/</loc>
<changefreq>daily</changefreq>
<priority>0.8</priority>
</url>
<url>
<loc>https://www.fangzhan100.com/mobile/</loc>
<changefreq>daily</changefreq>
<priority>0.8</priority>
</url>
<url>
<loc>https://www.fangzhan100.com/digi/</loc>
<changefreq>daily</changefreq>
<priority>0.8</priority>
</url>
<url>
<loc>https://www.fangzhan100.com/fashion/</loc>
<changefreq>daily</changefreq>
<priority>0.8</priority>
</url>
<url>
<loc>https://www.fangzhan100.com/lady/</loc>
<changefreq>daily</changefreq>
<priority>1.0</priority>
</url>
<url>
<loc>https://www.fangzhan100.com/caijing/</loc>
<changefreq>daily</changefreq>
<priority>0.8</priority>
</url>
<url>
<loc>https://www.fangzhan100.com/auto/</loc>
<changefreq>daily</changefreq>
<priority>0.8</priority>
</url>
<url>
<loc>https://www.fangzhan100.com/edu/</loc>
<changefreq>daily</changefreq>
<priority>0.8</priority>
</url>
<url>
<loc>https://www.fangzhan100.com/history/</loc>
<changefreq>daily</changefreq>
<priority>0.8</priority>
</url>
<url>
<loc>https://www.fangzhan100.com/food/</loc>
<changefreq>daily</changefreq>
<priority>0.8</priority>
</url>
<url>
<loc>https://www.fangzhan100.com/game/</loc>
<changefreq>daily</changefreq>
<priority>0.8</priority>
</url>
<url>
<loc>https://www.fangzhan100.com/dm/</loc>
<changefreq>daily</changefreq>
<priority>0.8</priority>
</url>
<url>
<loc>https://www.fangzhan100.com/youmo/</loc>
<changefreq>daily</changefreq>
<priority>0.8</priority>
</url>
<url>
<loc>https://www.fangzhan100.com/3c/</loc>
<changefreq>daily</changefreq>
<priority>0.8</priority>
</url>
<url>
<loc>https://www.fangzhan100.com/zzs/</loc>
<changefreq>daily</changefreq>
<priority>0.8</priority>
</url>
[e:loop={1,30000,3,1,'','newstime DESC'}]
<url>
<loc>http://www.fangzhan.org<?=$bqsr['titleurl']?></loc>
<lastmod><?=date('Y-m-d',$bqr[newstime])?></lastmod>
<changefreq>monthly</changefreq>
<priority>0.7</priority>
</url>
[/e:loop]
[e:loop={2,30000,3,1,'','newstime DESC'}]
<url>
<loc>http://www.fangzhan.org<?=$bqsr['titleurl']?></loc>
<lastmod><?=date('Y-m-d',$bqr[newstime])?></lastmod>
<changefreq>monthly</changefreq>
<priority>0.7</priority>
</url>
[/e:loop]
[e:loop={3,30000,3,1,'','newstime DESC'}]
<url>
<loc>http://www.fangzhan.org<?=$bqsr['titleurl']?></loc>
<lastmod><?=date('Y-m-d',$bqr[newstime])?></lastmod>
<changefreq>monthly</changefreq>
<priority>0.7</priority>
</url>
[/e:loop]
[e:loop={4,30000,3,1,'','newstime DESC'}]
<url>
<loc>http://www.fangzhan.org<?=$bqsr['titleurl']?></loc>
<lastmod><?=date('Y-m-d',$bqr[newstime])?></lastmod>
<changefreq>monthly</changefreq>
<priority>0.7</priority>
</url>
[/e:loop]
</urlset>
注意:
[e:loop={栏目ID,30000,3,1,'','newstime DESC'}]
最后一步设置自动更新:
系统 =》计划任务 =》 管理计划任务 =》 刷新自定页面 =》
注意执行时间设置:
因为自定刷新会影响网站性能!
所以你算好时间,我当时是在下午的15:30设置的。然后我设置是12小时候后是凌晨3:00+24小时候=720分钟;所以每隔一天自动刷新一次
时间自己参考自己设置。