From
https://www.hiawatha-webserver.org/forum/topic/1993
Hi,
I've been trying to get the URL Toolkit for Dokuwiki to work. Most likely my problem has to do with having Dokuwiki in a subfolder, e.g. example.com/wiki.
I've tried slightly rewriting the suggested URL Toolkit for dokuwiki with a /wiki/ in front of every Match and Rewrite (or either) in the hiawatha.conf file,but that didn't work. Then I read something about having a .hiawatha file, but that didn't seem to work either.
I'm a bit of a pleb when it comes to this stuff. Is it possible to rewrite URLs for dokuwiki in a subfolder, or does it have to be in the webiste root directory?
Hiawatha v9.3.1, cache, IPv6, Monitor, reverse proxy, SSL (1.3.2), Tomahawk, URL toolkit, XSLT
I was redirected here. The supposedly working URL Toolkit is here:
https://www.dokuwiki.org/install:hiawatha
EDIT:
Solved it:
I've solved the problem myself. I created a CNAME (in my DNS Zone File) pointing to the main domain called "wiki" (wiki.example.com) and made a VirtualHost for that (I thought for sure that would be black magic, but it worked), then I just added the Toolkit in hiawatha.conf and added "UseToolkit = dokuwiki" in the relevant VirtualHost.
So now I have a subdomain.
If anyone else finds this and follows suit, don't forget to switch to ".htaccess" in the DokuWiki configuration.