我刚刚输入了一个巨大的响应,FF 崩溃了,我失去了它,当这种情况发生时我讨厌它!
基本上它可能有两个具有不同内容的站点,一个在 www 下运行。一个没有 www 有点像子域。因此,当您提交站点地图时,谷歌会在 www 站点 ( http://www.appsamuck.com/sitemap.xml ) 上看到它,但站点地图中的所有 url 都不包含 www,因此谷歌想知道站点地图是否实际上是针对另一个站点的非 www 部分。通常这两个提供相同的内容但并非总是如此,所以谷歌说坚持你把站点地图放在 www,但你所有的页面都在一个非 www 域上那是什么!!
最好的办法是坚持一个或另一个,你是在宣传 www 还是非 www?无论您使用哪个(我建议使用 www 版本),请使用 www 提交您的站点地图,并确保站点地图中的所有网址都包含 www。这样谷歌就不会大吃一惊。对于 SEO 来说,坚持一个可能会稍微好一些。
正如尼克上面建议的那样,通过首选域选项让谷歌知道您更喜欢哪个也是一个好主意。我会设置这个选项
将 URL 显示为 www.appsamuck.com(适用于 www.appsamuck.com 和 appsamuck.com)
至少谷歌会知道你在谈论同一个网站。
至于站点地图,也有一些问题。首先,正如我指出的那样,它缺少每个 URL 中的 www。其次,您缺少文件顶部的 xml 声明等。你需要这样的东西
print("code sample");<?xml version="1.0" encoding="UTF-8"?>
<urlset
xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.sitemaps.org/schemas/sitemap/0.9
http://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd">
就像上面的 Diodeus 建议的那样,您确实应该添加其他字段,例如优先级等。
这是我为您完成的快速操作(请注意,当我打开上面的 urlset 标记并在这组代码的底部关闭时,它是从上面开始的)
print("code sample");
<url>
<loc>http://www.appsamuck.com/</loc>
<priority>1.00</priority>
<lastmod>2008-10-17T03:01:05+00:00</lastmod>
<changefreq>monthly</changefreq>
</url>
<url>
<loc>http://www.appsamuck.com/index.html</loc>
<priority>0.80</priority>
<lastmod>2008-10-17T03:01:05+00:00</lastmod>
<changefreq>monthly</changefreq>
</url>
<url>
<loc>http://www.appsamuck.com/blog/</loc>
<priority>0.80</priority>
<changefreq>monthly</changefreq>
</url>
<url>
<loc>http://www.appsamuck.com/about.html</loc>
<priority>0.80</priority>
<lastmod>2008-10-16T00:00:32+00:00</lastmod>
<changefreq>monthly</changefreq>
</url>
<url>
<loc>http://www.appsamuck.com/contact.html</loc>
<priority>0.80</priority>
<lastmod>2008-10-16T00:00:33+00:00</lastmod>
<changefreq>monthly</changefreq>
</url>
<url>
<loc>http://www.appsamuck.com/iphonesdkdev.html</loc>
<priority>0.80</priority>
<lastmod>2008-10-14T05:41:03+00:00</lastmod>
<changefreq>monthly</changefreq>
</url>
<url>
<loc>http://www.appsamuck.com/day16.html</loc>
<priority>0.80</priority>
<lastmod>2008-10-17T03:13:21+00:00</lastmod>
<changefreq>monthly</changefreq>
</url>
<url>
<loc>http://www.appsamuck.com/day15.html</loc>
<priority>0.80</priority>
<lastmod>2008-10-16T15:58:57+00:00</lastmod>
<changefreq>monthly</changefreq>
</url>
<url>
<loc>http://www.appsamuck.com/day14.html</loc>
<priority>0.80</priority>
<lastmod>2008-10-15T16:58:06+00:00</lastmod>
<changefreq>monthly</changefreq>
</url>
<url>
<loc>http://www.appsamuck.com/day13.html</loc>
<priority>0.80</priority>
<lastmod>2008-10-13T17:52:08+00:00</lastmod>
<changefreq>monthly</changefreq>
</url>
</urlset>
它不是一个完整的列表,我不会为你做所有的工作:)
还有一些很好的在线工具可以为您创建站点地图,他们抓取站点并构建它,只需 google xml-sitemaps,您应该会找到一些,还有一些很好的免费工具。此外,如果他们的蜘蛛无法找到您的内容,则它可能是谷歌也无法找到的标志,因此它具有双重目的。
希望有帮助:)保罗