【发布时间】:2015-06-24 22:47:20
【问题描述】:
如何在不使用任何插件的情况下创建 xml 站点地图?
<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
<url>
<loc>http://www.example.com/</loc>
<lastmod>2005-01-01</lastmod>
<changefreq>monthly</changefreq>
<priority>0.8</priority>
</url>
<url>
<loc>http://www.example.com/about.htm</loc>
<changefreq>daily</changefreq>
</url>
</urlset>
如何自动生成站点地图, 我的博客上有 2000 多个帖子,发布帖子时添加自动进入站点地图的方法是什么。 我已经尝试过插件,但我希望它手动生成,而不需要生成 Google 站点地图等插件,
【问题讨论】:
-
要自己查询数据库,手动写xml。