Setting up this wiki

From KallestadWiki

Jump to: navigation, search

I do want to do a few things with this wiki that apparently do not come out of the box. This page will detail out some of the steps I've taken in order to get things in order.

friendly urls

Referencing this wikimedia page I actually came upon a simple and easy solution for setting up the urls on this page the way I see most other wiki's being set up.

For this particular wiki, mediawiki is installed in the /wiki directory.

RewriteEngine on
# test if rewrite should stop for
# special directories
RewriteRule ^(images|skins)/ - [L]
# all php scripts.
RewriteRule \.php$ - [L]
# do the rewrite
RewriteRule ^/?(.*)$ ./index.php?title=$1 [L,QSA]

Then a minor edit to LocalSettings.php:

$wgScriptPath       = "/wiki";
$wgArticlePath      = "/wiki/$1";

Categories

I don't have categories right now, but they really should exist soon.

Templates

I just saw a reference to somewhere saying you could use templates. That would be nice. Gotta figure out how to do it.

Personal tools