【问题标题】:Sitemap is showing Html Error站点地图显示 Html 错误
【发布时间】:2015-09-16 13:49:02
【问题描述】:

我为我的网站生成了站点地图,然后我上传到谷歌站长,每次谷歌站长显示以下消息时,请帮我整理一下

谷歌站长留言

站点地图是 HTML 您的站点地图似乎是一个 HTML 页面。请改用受支持的站点地图格式。

【问题讨论】:

    标签: html xml .htaccess web


    【解决方案1】:

    您正在上传 HTML,而 Google 网站管理员不支持该格式。常用格式为XML

    来自链接:

    如果您有很多站点地图,您可以使用站点地图索引文件作为一种方式 立即提交。站点地图索引文件的 XML 格式非常 类似于站点地图文件的 XML 格式。站点地图索引文件 使用以下 XML 标记:

    sitemapindex - the parent tag surrounds the file.
    sitemap - the parent tag for each sitemap listed in the file (a child of sitemapindex)
    loc - the location of the sitemap (a child of sitemap)
    lastmod - the last modified date of the sitemap (optional)
    

    您可以查看站点地图协议页面以获取有关语法的更多信息。

    以下示例显示了 XML 格式的站点地图索引,其中列出了 两个站点地图:

    在此处阅读更多信息: https://support.google.com/webmasters/answer/75712?hl=en

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2014-11-10
      • 2013-12-23
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多