Mediawiki on Lighttpd

From Wiki
Jump to: navigation, search

I did some googling but most of the instructions I found were wrong. Here is how to get mediawiki working on Lighttpd.

Edit lighttpd.conf and add this line to your virtual host:

url.rewrite-once = ( "^/wiki/([^?]*)(?:\?(.*))?$" => "/w/index.php?title=$1&$2" )

Go to your wiki install directory, "w", and edit LocalSettings.php. Append the following line:

$wgArticlePath = "/wiki/$1";