2004/06/17: (more) Literate URLs for Swiki

I've been working with a fellow from Portland on getting his Swiki setup, where you can get a business card page for $25/year into some sanity. That means co-existing with everything else on the server, not taking over port 80, having sane URLs that you'd be proud to put on a business card, and being easy to administer. In addition, hiding the "list of Swikis" is important.

It turns out to be fairly easy. Start up the Swiki on port 8000 or what have you, get it running. Then set up Apache, which runs on port 80, thus: <VirtualHost *:80>
DocumentRoot /somewhere
ServerName yoursitename
RewriteEngine On
RewriteRule ^/(admin|schemes)(.*)$ http://localhost:8000/$1$2 [P]
RewriteRule ^/$ http://localhost:8000/MainSwikiPage [P]
RewriteRule ^/(.+)$ http://localhost:8000/$1 [P]
</VirtualHost>