MediaWiki 1.11

From HTYP, the free directory anyone can edit

Jump to: navigation, search

Contents

[edit] Navigation

computing: software: content management: wiki: MediaWiki: version 1.11

[edit] Overview

MediaWiki 1.11 may require some configuration changes in order to work properly with "nice URL" setups from earlier versions.

[edit] Nice URL Config

This may not work for everyone, and may not be necessary in all cases.

[edit] .htaccess

<IfModule mod_rewrite.c>
        RewriteEngine on 
        RewriteCond %{REQUEST_FILENAME} !-f 
        RewriteCond %{REQUEST_FILENAME} !-d 
        RewriteRule ^(.+)$ index.php/?title=$1 [PT,L,QSA] 
</IfModule>

[edit] LocalSettings.php

$wgScriptPath       = "";
$wgScriptExtension  = ".php";
$wgScript		= "$wgScriptPath/index.php";
$wgArticlePath		= "/$1";
 
$actions = array('edit', 'watch', 'unwatch', 'delete','revert', 'rollback', 'protect',
  'unprotect','info','markpatrolled','validate','render','deletetrackback','print',
  'dublincore','creativecommons','credits','submit','viewsource','history','raw',
  'purge');
 
foreach ($actions as $a) 
  $wgActionPaths[$a] = "$wgScriptPath/$1?action=$a";

The for-loop and $actions array were suggested by Manual:$wgActionPaths; I've redirected all actions except "view".

An earlier installation of MW 1.11 worked just fine without the $actions code; I have no idea why. They are both running on the same server.

Personal tools