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
Next revisionBoth sides next revision
sitemap [2011-05-06 00:52] – [Google Sitemap] Updating to match code in Sitemapper.php dblumesitemap [2019-05-20 11:04] – [Question] jyoti
Line 3: Line 3:
 [[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 cache subdirectory of your DokuWiki installation. It will be accessed by the following type of URL ''http://your_domain/dokuwiki/?do=sitemap''. 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 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''. 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.
  
 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.+__**Note: the sitemap will only contain pages that are readable by the public without logging in.**__ 
 + 
 +:!: TODO: ?do=sitemap MUST allow restriction to namespaces. You can always have multiple sitemaps for different purposes and ?do=sitemap&ns=some_ns&ns=... must be supported.
 ===== Permission Setup ===== ===== 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)).+To be able to create a sitemap, the webserver needs to have write access to the sitemap file in /data/cache. 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)).
  
 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. 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 34: Line 35:
  
   * [[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 Tools, use it to manage your sitemaps and monitor googlebot crawling reports about your site]]
 +
 +===== Question =====
 +If my domain is a virtual host set to an farm animal, will the ''?do=sitemap'' work? For me, I have got an empty sitemap.xml.gz from my http://ghsrobert.tk/?do=sitemap . How should I fix it? --- [[user>MilchFlasche|MilchFlasche]] //2019-04-02 16:45//
 +
 +* I think it works. Your link is working alright. It returned a gz file as described above. That contained a folder inside which there is one file called sitemap. It had lots of valid links. The arrangement looks odd though.  --- [[user>jyoti|Jyoti]] //2019-05-20 11:03//
sitemap.txt · Last modified: 2022-09-13 22:43 by Michaelsy

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