2010-10-01 59 views
1

我們的網站幾乎每天都會更新。每次添加新頁面時,我們都需要將網站地圖更新爲Google網站管理員。將網站地圖從django更新爲Google網站管理員不起作用

我們嘗試使用ping_google()以及所需的一組參數和谷歌,它似乎從未更新網站管理員的網站地圖。記錄響應,我們重新寫的功能,並記錄下面給出的迴應:

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()

回答

0

以外的網站管理員是否可以選擇更新站點地圖?您可以將鏈接發佈到您的站點地圖文件。

如果您已經爲網站地圖中的大部分網址設置了優先級,谷歌可能會認爲這是一種垃圾郵件,並且不會去下載網站地圖。

另請檢查站點地圖中的更改頻率。

如果您的網站地圖很好,內容真的每天都在變化,即使您不ping通,Google也會自動下載它。