验证你的 Sitemaps
Google 使用 XML 架构定义可以出现在 Sitemaps 文件中的元素和属性。你可从
以下链接下载此架构:
对于 Sitemaps: http://www.google.com/schemas/sitemap/0.84/sitemap.xsd
对于 Sitemaps 索引文件:http://www.google.com/schemas/sitemap/0.84/siteindex.xsd
有多种工具可帮助你根据此架构来验证你的 Sitemaps 结构。在下面的每一个位置
你都可以找到 XML 相关的工具列表:
http://www.w3.org/XML/Schema#Tools
http://www.xml.com/pub/a/2000/12/13/schematools.html
为了根据某个架构验证你的 Sitemaps 或 Sitemaps 索引文件,XML 文件需要有附
加的标头。如果你使用的是 Sitemaps 生成器,这些标头已经包含其中。如果你使用不
同的工具创建 Sitemaps,XML 文件中的标头应如下例所示。
Sitemaps:
xsi:schemaLocation="http://www.google.com/schemas/sitemap/0.84
http://www.google.com/schemas/sitemap/0.84/sitemap.xsd">
...
Sitemaps 索引文件:
xsi:schemaLocation="http://www.google.com/schemas/sitemap/0.84
http://www.google.com/schemas/sitemap/0.84/siteindex.xsd">
本站仅提供存储服务,所有内容均由用户发布,如发现有害或侵权内容,请
点击举报。