Sounds about right. Right now there is no such thing as /wiki/index.php
since you moved to /w/index.php.
So /wiki/index.php is being treated as the page linked to by
[[index.php]]. But the url for that is wrong since the proper key for that
title is [[Index.php]] because by default [[foo]] and [[Foo]] are the same
page. So MW is redirecting to the upper-case version at /wiki/Index.php.
And the query is being discarded because the only thing inside it is the
?title=... (see what happends when you go to
https://en.wikipedia.org/w/index.php?title=wikipedia).
Ideally you'd have never used /wiki/index.php in the first place, but too
it's late for that.
Now the path router I introduced that now handles short urls is fairly
flexible. I haven't tested it but to experiment try adding this to your
LocalSettings.php.
$wgHooks['WebRequestPathInfoRouter'] = function( $router ) {
$router->addStrict( "/wiki/index.php", array( 'title' => false )
);
$router->add( "/wiki/index.php/$1" );
return true;
};
The other, classic way to fix this of course would simply be a rewrite
rule to 301 redirect all /wiki/index.php paths to /w/index.php.
--
~Daniel Friesen (Dantman, Nadir-Seen-Fire) [
http://danielfriesen.name/]
On Sat, 10 Aug 2013 19:40:27 -0700, Sarah Bradberry
<knittingand(a)gmail.com> wrote:
I just thought of something that is probably the
problem (smacking myself
in the forehead here).
I originally set up the wiki infrastructure at
knitting-and.com/wiki
People linked to the long form of URLs there
I set up short urls - the incoming long urls were working & redirecting
to
the short versions
I moved the wiki infrastructure to
knitting-and.com/w with articles at
knitting-and.com/wiki
Long urls are coming into the OLD wiki long URLs at
knitting-and.com/wiki/
So I need to set up the old version of the long urls from
knitting-and.com/wiki/ to redirect as well as the current version.
Does that sound right or completely insane?