帝国CMS文件官方自带得是一个sitemap.php文件,再网上也很少有帝国cms网站地图教程,现在福建虎纠SEO教你动手制作sitemap.xml网站地图(sitemap自动生成)
1、登录网站的后台http://你的域名/e/admin/
2、进入后台栏目 =》增加自定义页面 =》选择直接页面,页面名称为:网站地图,文件名修改为 ../../sitemap.xml
帝国cms网站后台
3、内容填写如下:(注意将示例中:http://你的域名/修改为自己的域名)
复制以下代码
[e:loop={1,30000,3,1,'','newstime DESC'}]
<url>
<loc>http://www.f9seo.com<?=$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.f9seo.com<?=$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.f9seo.com<?=$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.f9seo.com<?=$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'}]
4、设置自动更新:系统 =》计划任务 =》 管理计划任务 =》 刷新自定页面 =》
帝国cms网站地图自动更新
注意执行时间设置: 因为自定刷新会影响网站性能! 所以你算好时间,我当时是在下午的15:30设置的。然后我设置是12小时候后是凌晨3:00+24小时候=720分钟;所以每隔一天自动刷新一次。 大功告成,现在你会做自己帝国CMS得网站地图sitemap程序可吗?
