首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >将sitemap从django更新到google网站管理员不起作用

问将sitemap从django更新到google网站管理员不起作用
EN

Stack Overflow用户
提问于 2010-10-01 12:24:33
回答 1查看 843关注 0票数 1

我们的网站几乎每天都在更新。我们需要更新的网站地图,以谷歌站长每次有新的网页添加。

我们已经尝试使用ping_google()以及所需的参数集和谷歌,但它似乎从未更新过网站管理员上的网站地图。为了记录响应,我们重写了函数并记录了下面给出的响应:

代码语言:javascript
复制
    2010-10-01 09:00:02,489 DEBUG Sitemap Response: <html><meta http-equiv="content-type" content="text/html; charset=UTF-8">
<head><title>Google Webmaster Tools
-
Sitemap Notification Received</title>
<meta name="robots" content="noindex, noodp">
<script src="https://ssl.google-analytics.com/urchin.js" type="text/javascript">
   </script>
<script type="text/javascript">
     _uacct="UA-18009-2";
     _utcp="/webmasters/";
     _uanchor=1;
     urchinTracker();
   </script></head>
<body><h2>Sitemap Notification Received</h2>
<br>
Your Sitemap has been successfully added to our list of Sitemaps to crawl. If this is the first time you are notifying Google about this Sitemap, please add it via  <a href="http://www.google.com/webmasters/tools/">http://www.google.com/webmasters/tools/</a>  so you can track its status. Please note that we do not add all submitted URLs to our index, and we cannot make any predictions or guarantees about when or if they will appear.</body></html>

反应看起来还不错。但是网站管理员的网站地图永远不会更新。我们使用的是django 1.1。除了ping_google()之外,还有没有其他方法可以更新网站管理员的网站地图

EN

回答 1

Stack Overflow用户

发布于 2010-10-01 16:02:32

你能把链接贴到你的网站地图文件上吗?

如果你为网站地图中的大多数URL设置了高优先级,谷歌可能会认为这是一种垃圾邮件,不会费心下载网站地图。

还要检查网站地图中的更改频率。

如果你的网站地图很好,而且内容每天都在变化,即使你没有ping,谷歌也会自动下载它。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/3836529

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档