Google网站管理员工具说站点地图有错误,但没有

时间:2012-12-06 17:28:13

标签: xml sitemap google-webmaster-tools

因此,客户端拥有此自动生成的站点地图:http://nordwest-najad.se/sitemap.xml 当我尝试将其添加到Google网站管理员工具时,我收到此错误:

Missing XML tag
This required tag is missing. Please add it and resubmit.

问题是xml标签在那里,文档没有任何问题 我已经用这些网站验证了该文件:
http://www.validome.org/google/
http://sitemapxml.net/sitemap-validator.php
http://www.xml-sitemaps.com/validate-xml-sitemap.html
并且所有三个网站都表示没有错误。

3 个答案:

答案 0 :(得分:1)

我为我的案例修好了

我检查www.dhakalist.com/sitemap.xm我正在工作但不是dhakalist.com/sitemap.xml

所以我在.htaccess文件中添加了这些行并解决了问题。

RewriteCond %{HTTP_HOST} !^www\.

RewriteRule ^(.*)$ http://www.%{HTTP_HOST}/$1 [R=301,L] 

现在谷歌正在采用站点地图。

答案 1 :(得分:0)

来自:http://support.google.com/webmasters/bin/answer.py?hl=en&answer=183668

您的Sitemap文件必须指定以下XML命名空间:xmlns =“http://www.sitemaps.org/schemas/sitemap/0.9”。

答案 2 :(得分:0)

Google网站管理员工具显示正确的错误,因为您完全缺少XML标记。 因为你的起跑线

“http://www.google.com/schemas/sitemap/0.9/sitemap.xsd”>“有错误。

更改它

http://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd“>

这对于验证定义元素和属性的过程是必要的。您可以根据XML架构指南在站点地图文件中进行定义。

相关问题