From: Aredridel <are...@nb...> - 2001-11-16 21:00:58
|
Well, I just actually looked at SpiroLattic on a "Real Browser" (I usually use the text-mode w3m browser, since it's small and fast (and on my P150, that's rather nice), and since my memory moduel in my machine died, I can't even manage graphics mode. Anyway, I just looked at the site, and I'm -really- impressed. I think I'm going ot be redesigning the NBTSWikiWiki soon, perhaps, with some inspiration from you. It's been about time anyway. I was just playing around with Apache and discovered one other way to make PHPWiki work as the root of a domain: the ErrorDocument directive. It's a weird hack, but it'd work. You'd put: ErrorDocument 404 /phpwiki/index.php DirectoryIndex HomePage in your httpd.conf, and make a few tweaks to PHPWiki: $PATH_INFO = $REQUEST_URI; Header("HTTP/1.1 200 OK"); in the index.php, I'd guess, though I'm not sure since I didn't actually try it with anything but a phpinfo(); script. (If PHPWiki uses 302 redirects by default now (I honestly haven't had a chance to look), it'll break those, but otherwise, it should work like a dream, and to override the wikiness of a URI, just put the file in the directory, and a 404 will never trigger. The downside is that this doesn't override apache's errorlogging, so you'd have to deal with that. Probably not a big deal with a wiki-only site -- just turn it off and use the accesslog or turn it on as neccesary. Ari |