google接收的站点地图sitemap格式
google接受的sitemap格式有严格要求,必须按以下结构,lastmod必须是日期格式不能带时间。
此外,
1. Google 会忽略 <priority> 和 <changefreq> 值。
2. 如果 <lastmod> 值始终准确并可验证(例如通过与网页的最后修改日期进行比较),Google 会使用该值。
<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
<url>
<loc>https://www.example.com/foo.html</loc>
<lastmod>2022-06-04</lastmod>
</url>
</urlset>