New UrlToolKit rules for DokuWiki
vincent
26 November 2009, 00:51
Hi!
The rules at http://www.hiawatha-webserver.org/howto/url_rewrite_rules don't work with DokuWiki (2009-02-14b). Images and other files aren't displayed. (It's a path issue.)
So I extended the ruleset according to http://www.dokuwiki.org/de:rewrite. Everything works fine now.
You maybe want to include these rules into your howto page.
UrlToolkit {
ToolkitID = dokuwiki
Match ^/(bin|conf|inc)/ Skip 1
Match ^/_media/(.*)\?(.*) Rewrite /lib/exe/fetch.php?media=$1&$2
Match ^/_media/(.*) Rewrite /lib/exe/fetch.php?media=$1
Match ^/_detail/(.*)\?(.*) Rewrite /lib/exe/detail.php?media=$1&$2
Match ^/_detail/(.*) Rewrite /lib/exe/detail.php?media=$1
Match ^/_export/([^/]+)/(.*) Rewrite /doku.php?do=export_$1&id=$2
RequestURI isfile Return
Match /(.*)\?(.*) Rewrite /doku.php?id=$1&$2
Match /(.*) Rewrite /doku.php?id=$1
}
vincent
Hiawatha version: 6.17
Operating System: Debian stable
Hugo Leisink
26 November 2009, 14:36
Tested it, looks oke. I've added it to the HOWTO page. Thanks!
This topic has been closed.