Matt Fiddles

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

User Tools

Site Tools


Sidebar

"Ford grabbed him by the lapels of his dressing gown and spoke to him as slowly and distinctly and patiently as if he were somebody from a telephone company accounts department."

- Ford trying to rectify that situation.



Where will you go today?

"Arthur hoped and prayed that there wasn't an afterlife. Then he realised there was a contradiction there and merely hoped that there wasn't an afterlife."

- Arthur realising that he's in a certain death situation with a supernova bomb that is shaped like a cricket ball.
computers:web-engines:dokuwiki

Dokuwiki

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.

Add:

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

Remove:

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

http://wakka.xiffy.nl/meta_tags

For a list of meta tags go to http://wiki.whatwg.org/wiki/MetaExtensions

SEO

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 http://www.mattfiddles.com/doku.php?id=computers:filesystems&do=
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
Disallow:
Allow: /
User-agent: Mediapartners-Google
Disallow:
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.

Calendar

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.

Blog

Music

Pictures

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

Social Media

Maps

Stats

Page Editing

Math

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

Admin

  • 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

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 (8 months ago) by Matt Bagley