I've been working on upgrading a wiki I administer to the lastest vestion of
MediaWiki from the svn repository, and have run into an odd issue with URL
rewriting.
I've disabled the RewriteEngine in my .htaccess file while trying to puzzles
out exactly what's been going on, but it seems that attempts for me to
navigate to the url
http://test.krakiipedia.org/w/, which is where the wiki
software resides, result in the URL
http://test.krakiipedia.org/w/index.php?title=W/index.php and a 'The page
isn't redirecting properly' error in Firefox.
Another example:
http://test.krakiipedia.org/w/index.php?title=Main_Page
Results in:
http://test.krakiipedia.org/w/index.php?title=W/index.php
With the same error displayed by Firefox.
Now, for the really curious part. The URL
http://test.krakiipedia.org/w/index.php?title=Main_Page&action=edit sort of
seems to work, telling me I need to login to edit the page, which is
normal. However, I can't log in to see if anything else is happening. It
also appears as it it's trying to have me edit the page named "W/index.php"
instead of "Main Page".
The best I can come up with is that $1 in my $wgArticlePath definition is
being replaced with "W/index,php" regardless of anything.
The relevant lines from my LocalSettings.php files are:
$wgScriptPath = "/w";
$wgScript = "$wgScriptPath/index.php";
$wgRedirectScript = "$wgScriptPath/redirect.php";
#$wgArticlePath = "/wiki/$1";
$wgArticlePath = "$wgScript?title=$1";
I normally have my .htaccess file set up to rewrite the URL in the form of "
http://test.krakiipedia.org/wiki/Main_Page"quot;, and I originally thought this
was the cause, but it seems to be the 1.9alpha version.
I've run the database update on a copy of the live database that is running
1.6.7 now, which didn't help the situation.
Any ideas?
Oliver Kurek