Hi Hugo,
I am trying to get wacko wiki
http://wackowiki.org/Doc/English
going with hiawatha using URL re-writing - I do struggle with this area!!
However on this occasion with the help of
#wigwam -t wacko
where wacko is the ToolkitID I defined in httpd.conf to test the URLs returned by the toolkit I think I have cracked it.
Hiawatha version: 6.14
Operating System: puppylinux 4.2.1
The apache .htaccess file is:
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^(.*/[^\./]*[^/])$ $1/
RewriteRule ^(robots\.txt)$ robots.txt [L]
RewriteRule ^(sitemap\.xml)$ sitemap.xml [L]
RewriteRule ^(favicon\.ico)$ favicon.ico [L]
RewriteRule ^(.*)$ index.php?page=$1 [QSA,L]
</IfModule>
The wacko installation is under localhost/wacko - or the full filepath of /root/httpd/hiawatha/wacko
I've looked through the examples and the new HOWTO for URL re-writing and had a crack with the following:
UrlToolkit {
ToolkitID = wacko
Match ^/$ Return
RequestURI isfile Exit
Match /wacko/(.*)\?(.*) Rewrite /wacko/index.php?page=$1&$2
Match /wacko/(.*) Rewrite /wacko/index.php?page=$1
}
Subject to your review - this maybe helpful for other folks who wish to install wacko wiki under hiawatha
I notice that you can only use a Toolkit under the virtual host section, it might be nice to allow UseToolkit under the Directory - since this rule should not be applied to other directories. I may not be understanding something though here!
Thanks again for your patience and support
Phil