DokuWiki

It's better when it's simple

使用者工具

網站工具


zh-tw:sitemap

差異處

這裏顯示兩個版本的差異處。

連向這個比對檢視

兩邊的前次修訂版前次修改
下次修改
前次修改
zh-tw:sitemap [2009-11-17 04:57] 124.9.198.147zh-tw:sitemap [2014-02-27 02:26] (目前版本) Klap-in
行 7: 行 7:
 要開啟這個功能請設定 '[[config:sitemap|sitemap option]]'。在開啟這個功能之後, DokuWiki 會試著在你 DokuWiki 的根目錄中建立一個名稱為 ''sitemap.xml.gz'' 的 sitemap 。你必須確定 DokuWiki 可以寫入這個檔案。如果根目錄無法開啟寫入權限,你必須在根目錄下建立一個空的檔案,取名為 ''sitemap.xml.gz'' ,並設定好權限。 要開啟這個功能請設定 '[[config:sitemap|sitemap option]]'。在開啟這個功能之後, DokuWiki 會試著在你 DokuWiki 的根目錄中建立一個名稱為 ''sitemap.xml.gz'' 的 sitemap 。你必須確定 DokuWiki 可以寫入這個檔案。如果根目錄無法開啟寫入權限,你必須在根目錄下建立一個空的檔案,取名為 ''sitemap.xml.gz'' ,並設定好權限。
  
-在建立一個新的sitemap之後,DokuWiki會在背景執行''%%http://www.google.com/webmasters/sitemaps/ping?sitemap=<your_sitemap_url>%%'',試著 "ping" Goole ,通知有新的 sitemap 了。+在建立一個新的sitemap之後,DokuWiki 經由 "ping" ,通知下列搜尋引擎有新的 sitemap 了。 
 + 
 +  * Google 
 +  * Yahoo 
 +  * Microsoft Live/MSN 
 + 
  
 備註:  備註: 
   * 如果 '[[config:gzip_output|gzip_output]]'是開啟的(預設值),那麼 DokuWiki 會使用 ''sitemap.xml.gz''。而如果 '[[config:gzip_output|gzip_output]]' 是關閉的,則會使用 ''sitemap.xml''   * 如果 '[[config:gzip_output|gzip_output]]'是開啟的(預設值),那麼 DokuWiki 會使用 ''sitemap.xml.gz''。而如果 '[[config:gzip_output|gzip_output]]' 是關閉的,則會使用 ''sitemap.xml''
   * Google sitemap 有個網站擁有者認證服務。對 DokuWiki 來說,實行這個選項最簡單的方式是「上傳一個 HTML 檔」。假設''%%http://your.site.tld/dokuwiki_basedir/%%''是你的網站,首先建立一個 Google 建議的檔案,如''%%http://your.site.tld/dokuwiki_basedir/googlexyz.html%%''(使用者必須可讀)。然而,為了讓這個功能可以運作,你必須也同時開啟 '[[config:send404|send404]]'。原因是因為對於不存在的頁面, DokuWiki 預設回傳 "200 OK"。Google 對於不存在的頁面預期的回應用是 "404 Not Found"。所以當 Google 測試一個虛構的網頁(如 ''%%http://your.site.tld/dokuwiki_basedir/noexist_xyz.html%%''),然後得到 "200 OK" 的回應,它會取消這個認證。   * Google sitemap 有個網站擁有者認證服務。對 DokuWiki 來說,實行這個選項最簡單的方式是「上傳一個 HTML 檔」。假設''%%http://your.site.tld/dokuwiki_basedir/%%''是你的網站,首先建立一個 Google 建議的檔案,如''%%http://your.site.tld/dokuwiki_basedir/googlexyz.html%%''(使用者必須可讀)。然而,為了讓這個功能可以運作,你必須也同時開啟 '[[config:send404|send404]]'。原因是因為對於不存在的頁面, DokuWiki 預設回傳 "200 OK"。Google 對於不存在的頁面預期的回應用是 "404 Not Found"。所以當 Google 測試一個虛構的網頁(如 ''%%http://your.site.tld/dokuwiki_basedir/noexist_xyz.html%%''),然後得到 "200 OK" 的回應,它會取消這個認證。
-  * dokuwiki-2006-03-09 有一個 bug ,會讓 sitemap 建立或更新時自動 "ping" Google 導向錯誤的 sitemap URL 。更多資訊請見[[http://bugs.splitbrain.org/?do=details&id=815]]+  * dokuwiki-2006-03-09 有一個 bug ,會讓 sitemap 建立或更新時自動 "ping" Google 導向錯誤的 sitemap URL 。更多資訊請見[[http://bugs.dokuwiki.org/?do=details&id=815]]
   * [[indexer]] 產生 Sitemap。要手動執行及 debug ,請使用:http://yourserver/dokuwiki/lib/exe/indexer.php?debug=1   * [[indexer]] 產生 Sitemap。要手動執行及 debug ,請使用:http://yourserver/dokuwiki/lib/exe/indexer.php?debug=1
  
-===== Google Sitemap Problems===== +===== 權限設定 ===== 
->> To launch it manuallyand debug it, try : http://yourserver/dokuwiki/lib/exe/indexer.php?debug=1 + 
-> Dokuwiki-20061106. I've doneBy I have this answer: +To be able to create a sitemapthe Webserver needs to have write access to the sitemap file. The easiest way to make sure it hasis to create an empty **''sitemap.xml.gz''** file and change its permissions accordingly((See [[install:permissions]] on tips about permission setting)). 
-  runIndexer(): started + 
-  metaUpdate(): started +If your sitemap won't be created you can try to get some debug output from the indexer by calling ''%%http://yourserver/dokuwiki/lib/exe/indexer.php?debug=1%%'' in your browser.
-  runSitemapper(): started +
-  runSitemapper(): using sitemap.xml.gz+
  
-> here process hangs-up with no other output. +To force your sitemap to be re-created, try temporarily setting the [[config:sitemap]] option to large, negative value.
-> **No sitemap.xml.gz is created**.  +
-> Solved creating a new empty sitemap.xml.gz in dokuwiki root directory. It seems needed even if dokuwiki rootdir is writeable for user apache. +
-> I thing may be useful better output from debug.+
  
 ===== Sitemap Validity ===== ===== Sitemap Validity =====
zh-tw/sitemap.1258430259.txt.gz · 上一次變更: 2009-11-17 04:57 由 124.9.198.147

若無特別註明,本 wiki 上的內容都是採用以下授權方式: CC Attribution-Share Alike 4.0 International
CC Attribution-Share Alike 4.0 International Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki