Matt Fiddles

Life's so vast, there's just so much to do...

User Tools

Site Tools


"I find your lack of faith disturbing."

- Darth Vader

Where will you go today?

"Now it is such a bizarrely improbable coincidence that anything so mindboggingly useful could have evolved purely by chance that some thinkers have chosen to see it as the final and clinching proof of the non-existence of God.
"The argument goes something like this: `I refuse to prove that I exist,' says God, `for proof denies faith, and without faith I am nothing.'
"`But,' says Man, `The Babel fish is a dead giveaway, isn't it? It could not have evolved by chance. It proves you exist, and so therefore, by your own arguments, you don't.


Static Pages

My Customizing

Turned indexdelay to 1 (second) because if google comes along after I edit, the page (be default) won't get indexed for 5 days … and that's too long. See indexdelay. It also could decide to delete it's current data because my site said “noindex”.

Turned off relnofollow because it just seems mean to not allow search engines to index other's content, only my own. See relnofollow.

Inserted RewriteRule ^/?$ /start [R=301,L] into .htaccess so people always come to the same page.

Use first heading for pagenames, as it looks better, as well as sneaky index. Not that I'm trying to hide anything, lol.

Increased authentication security timeout, maximum page lockout time, and decreased 'sitemap' generation time.

Use nice URLs, slash as namespace separator, page name word separator set to '-', and turned on gzip.

Thumbnail image set to 180.

General Customizing

Meta Headers

MetaHeaders Plugin to remove and add meta tags.


$headers['meta'][] = array('name' => 'DC.title', 'content' => '');


$clear[] = array ('type' => 'application/rss+xml');
$clear[] = array ('name' => 'date');

For a list of meta tags go to


Force all paths to always be the same (pretty links, in .htaccess)

# get rid of doku.php always
RewriteCond %{THE_REQUEST} /?doku\.php\?id=([^&]*).* [NC]
RewriteRule ^(.*)$ /%1? [R=301,L]

# redirect
RewriteCond %{SCRIPT_FILENAME} !-f
RewriteCond %{SCRIPT_FILENAME} !-d
RewriteRule ^(.*):(.*)$ $1/$2 [R=301,L]

Make searches all /word?do=search

# show all search paths the same
RewriteCond %{QUERY_STRING} do=search&id=(.*)
RewriteRule ^(.*)$ /%1?do=search [R=301,L]

*OR* Make comments all the same path: /search/word

# show all search paths the same
RewriteCond %{QUERY_STRING} ^do=search&id=(.*) [OR]
RewriteCond %{QUERY_STRING} ^id=(.*)&do=search
RewriteRule ^(.*)$ /search/%1? [R=301,L]

# Then put this above the dokuwiki part:
RewriteRule ^search/(.*)              doku.php?directsearch=yes&do=search&id=$1  [QSA,L]

# don't put these in, just to help you place in the right place
RewriteRule ^_media/(.*)              lib/exe/fetch.php?media=$1  [QSA,L]
RewriteRule ^_detail/(.*)             lib/exe/detail.php?media=$1  [QSA,L]

Better robots.txt setup

User-agent: *
Disallow: /cgi-bin/
Disallow: *do=edit*
Disallow: *do=revisions*
Disallow: *do=backlink*
Disallow: *dokuwiki__top
Disallow: *do=media*
Disallow: *do=diff*
Disallow: *do=index*
User-agent: Googlebot-Image
Allow: /
User-agent: Mediapartners-Google
Allow: /
Sitemap: http://www.example/sitemap.xml.gz

Note the sitemap file is custom made. Or you can use the builtin dokuwiki one.

Page Templates

Namespace Templates allow for preformated/premade wiki pages for particular namespaces.

Tips on how to edit the sidebar are here.

Tracking code

Insert into 'conf/footer.html'. See template instructions for more info.

Templates I Like

Plugins that are interesting

Here's some plugins I found interesting. Not all of them work, and they are written by other people. Some haven't been updated in years, so be careful.


Todo and Project

Page Layout and Display

  • Box plugin “brings boxes to DokuWiki allowing you to highlight particularly important parts of your wiki in boxes that standout.”
  • Note plugin creates notes much like those found in the Fedora manual or other self-help literature.
  • fortune Plugin - plugin Show QOTD (Fortune cookie). Get fortunes here. Make your own here.
  • Blockquote Plugin shows quotations in a semantically correct way
  • Format+ plugin - Adds useful HTML styles not already in DokuWiki
  • bible Plugin shows a popup of a bible verse, which is recognized automatically.
  • Smartcache Plugin - Improve Dokuwiki speed by smart usage of the browser cache.

TOC - Search - Indexing

  • See the sidebar page for info on how to edit that.
  • Cloud: This is a very simple plugin that shows a cloud of the most frequently used words in your wiki.
  • Index Menu: Show a customizable and sortable index for a namespace.
  • NsToC Syntax PlugIn shows the table of contents for an entire namespace.
  • pagequery plugin An all-in-one multipurpose navigation plugin to create index pages; search/filter by full-text or page name; display in columns, grouped, sorted, even has content preview tooltips.
  • Move for moving pages and their history from one place to another.
  • 404manager for redirecting.
  • PageRedirect for after moving pages. See here.




  • Gallery allows for photo galleries.
  • xkcd plugin displays a new comic updated every mon-wed-fri.

Social Media



Page Editing


  • MAsciiMath Plugin - Simple beautiful math - server-side ASCIIMathML to MathML parsing
  • mathpublish Plugin - PHP only solution for including mathematical formulae into DokuWiki


  • Censure. Every edited page must be approved by an admin before publishing.
  • Secure Login encrypts the password upon login, allowing safe login without HTTPS. This is unrelated to dokuwiki's internal storage of the passwords (md5,sha1,etc).

More plugins can be found here


Farms: The farm plugin. one single copy of wiki engine (the farmer) is used to run several individual wikis (the animals). For more info see Wiki Farms with DokuWiki

More Info

computers/web-engines/dokuwiki.txt · Last modified: Sep 20, 2017 (13 months ago) by Matt Bagley