Mediawiki 1.11 Clean URLs
Sunday, February 10th, 2008It looks like Mediawiki 1.11 and later versions have a bug, and have broken the previous fixes for clean URLs. If you try to use the new version of Mediawiki with the fixes that used to work with the previous version, you will not be able to log in, or log out. Whenever you click log in, an edit page will be come up for index.php. Obviously, this is not going to work, unless you disable Clean URLs.
The Solution: It turns out that the solution to this problem is to add the following to you LocalSettings.php file.
$wgUsePathInfo = false;
You will also still need to keep your previous settings, such as $wgArticlePath = “/$1″; and your previous RewriteRule. I actually use virtual hosting in Apache, which makes things a little more complicated.
It is surprising that Mediaiki does not make it easier to enable clean URLs, since Wikipedia uses them. Wikipedia actually uses the sitename/wiki/Main_Page format, but I prefer the sitename/Main_page format.