Is this a supported configuration in 1.3.9:
The URL is http://developer.fictionalley.org/wiki. ModRewrite permits http://developer.fictionalley.org/wiki/Main_Page for the top page. And the links on the pages are similar URLs.
The problems I'm seeing are numerous redirects with the Apache log ping-ponging between URLs like the following:
GET /wiki/?title=User ... GET /wiki?title=User ... GET /wiki/?title=User ... GET /wiki?title=User ...
However, if I configure LocalSettings to display the links on the pages to contain index.php in the URL (for example, http://developer.fictionalley.org/wiki/index.php/Main_Page), there are no problems with numerous redirects.
The reason I'm wondering if links on the page of this form is supported is that half the redirects happen from the file includes/RawPage.php on line 63. And in my configuration, wgScript is '' and PHP_SELF is '/wiki/'. To me, it looks like this is intended in that file and it was looking for a filename/script in the URL.
An interesting thing this is, wikipedia.com and meta.wikipedia.org have no problems with having URLs without including the script name, index.php.
Help!
Thanks, Paul
On Thu, 23 Dec 2004 07:23:07 +0000, paul-wikil@wibbles.org paul-wikil@wibbles.org wrote:
And in my configuration, wgScript is '' and PHP_SELF is '/wiki/'.
$wgScript must be the complete path to index.php, otherwise it will not work. To create URLs of the form "/wiki/Foo" for articles, change $wgArticlePath to "/wiki/$1". (Note that this won't change e.g. action=edit links, but WikiMedia wikis don't do that either).
$wgScriptPath = "/searchtest"; $wgScript = "$wgScriptPath/index.php"; $wgRedirectScript = "$wgScriptPath/redirect.php";
## If using PHP as a CGI module, use the ugly URLs $wgArticlePath = "/w/$1"; # $wgArticlePath = "$wgScript?title=$1";
RewriteRule ^/w/(.*)$ /searchtest/index.php?title=$1 [L,QSA]
Kate.
$wgScript must be the complete path to index.php, otherwise it will not work. To create URLs of the form "/wiki/Foo" for articles, change $wgArticlePath to "/wiki/$1". (Note that this won't change e.g. action=edit links, but WikiMedia wikis don't do that either).
Thank you. I kept missing $wgArticlePath each time I looked. Here is my final (working) LocalSettings:
$wgScriptPath = "/wiki"; $wgScript = "$wgScriptPath/index.php"; $wgRedirectScript = "$wgScriptPath/redirect.php"; $wgArticlePath = "$wgScriptPath/$1";
Paul
mediawiki-l@lists.wikimedia.org