Tuesday, March 6, 2007

升级mediawiki到1.9.3


  1. 首先在sf.net下载最新版本的mediawiki

  2. 安装到你的 /wiki 目录

  3. 配置 .htaccess 文件
    RewriteEngine On
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^(.*)$ /wiki/index.php?title=$1 [QSA,L]


    配置 LocalSettings.php 文件,修改以下几处使得 mediawiki 可以实现 CleanURL
    $wgScript = "$wgScriptPath/";
    $wgArticlePath = "$wgScript$1";
    # $wgArticlePath = "$wgScript?title=$1";

No comments:

Post a Comment