DokuWiki

It's better when it's simple

User Tools

Site Tools


sitemap

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
sitemap [2010-11-01 20:42] – old revision restored HåkanSsitemap [2022-09-13 22:43] (current) – Render URL samples not as actual links Michaelsy
Line 1: Line 1:
-====== Google Sitemap ======+====== XML Sitemap for Search Engines ======
  
 [[DokuWiki]] can automatically create an [[http://www.sitemaps.org/|XML Sitemap]] used by several big search engines like Google, Yahoo, and Microsoft. [[DokuWiki]] can automatically create an [[http://www.sitemaps.org/|XML Sitemap]] used by several big search engines like Google, Yahoo, and Microsoft.
  
-The sitemap creation is enabled with the [[config:sitemap]] option. The sitemap is placed in the top directory of your DokuWiki installation. Depending on the availability of gzip support in your PHP install it will either be named ''sitemap.xml.gz'' (when gzip is available) or ''sitemap.xml'' (with no gzip support). Nearly all modern PHP installs have gzip support enabled, so ''sitemap.xml.gz'' is your best guess.+Before continuing, **enable** sitemap creation by setting the [[config:sitemap]] properties under Configuration Settings((The value of "Generate Google sitemap this often (in days)" has to be greater than 0.)). The sitemap is placed in the cache subdirectory of your DokuWiki installation. It will be accessed by the following type of URL ''%%http://your_domain/dokuwiki/doku.php?do=sitemap%%''
  
 When the sitemap is updated, DokuWiki will inform the following search engines automatically through a HTTP "ping": When the sitemap is updated, DokuWiki will inform the following search engines automatically through a HTTP "ping":
Line 11: Line 11:
   * [[http://www.live.com|Microsoft Live/MSN]]   * [[http://www.live.com|Microsoft Live/MSN]]
  
-Note: the sitemap will only contain pages that are readable by the public without logging in. +If the Google Search Console is used, the above URL can be submitted((Eventually an error is shown first, but after some time the sitemap will be accepted.)). Another possibility is the inclusion of the command ''%%Sitemap: http://your_domain/dokuwiki/doku.php?do=sitemap%%'' in the ''robots.txt'' file.
-===== Permission Setup =====+
  
-To be able to create a sitemap, the webserver needs to have write access to the sitemap file. The easiest way to make sure it has, is to create an empty **''sitemap.xml.gz''** file and change its permissions accordingly((See [[install:permissions]] on tips about permission setting)).+**Note:** the sitemap will only contain pages that are readable by the public without logging in.
  
-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. 
- 
-To force your sitemap to be re-created, try temporarily setting the [[config:sitemap]] option to a large, negative value. 
  
 ===== Sitemap Validity ===== ===== Sitemap Validity =====
Line 31: Line 27:
 </code> </code>
  
 +
 +===== Cache =====
 +
 +The XML sitemap file generated is located at ''dokuwiki/data/cache/sitemap.xml.gz''. If you have made change in your authorization scheme, you may want to delete this file in order to get an accurate file.
 +
 +The [[plugin:stale|Stale Plugin]] also deletes this file if present.
 ===== Read more ===== ===== Read more =====
  
   * [[seo|DokuWiki and Searchengines]]   * [[seo|DokuWiki and Searchengines]]
-  * [[http://www.flagar.com/en/risorse/dokuwiki_google_sitemap|Info about Google sitemap for older releases]] +  * [[https://www.google.com/webmasters/tools/siteoverview|Google Webmaster Tools]] use it to manage your sitemaps and monitor googlebot crawling reports about your site 
-  * [[https://www.google.com/webmasters/tools/siteoverview|Google Webmaster Toolsuse it to manage your sitemaps and monitor googlebot crawling reports about your site]]+ 
sitemap.1288640539.txt.gz · Last modified: 2010-11-01 20:42 by HåkanS

Except where otherwise noted, content on this wiki is licensed under the following license: 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