Mediawiki Notes

less than 1 minute read

remove index.php

<Directory /home/wiki>
   Options FollowSymLinks
   RewriteEngine On
   RewriteCond %{REQUEST_FILENAME} !-f
   RewriteCond %{REQUEST_FILENAME} !-d
   RewriteRule ^(.+)$ /index.php?title=$1 [L,QSA]
</Directory>
$wgArticlePath = "$wgScriptPath/$1";

clear cache

 TRUNCATE TABLE objectcache;

a private wiki

$wgGroupPermissions['*'    ]['createaccount']   = false;
$wgGroupPermissions['*'    ]['read']            = false;
$wgGroupPermissions['*'    ]['edit']            = false;

$wgWhitelistRead = array( "Main Page", "Special:Userlogin" );

Categories: