I seem to be getting one other minor problem in my new MediaWiki release.
If I use http://www.rpg.net/wiki, everything works fine.
However if I change to http://wiki.rpg.net (also changing $wgScriptPath from "/wiki" to "") then any pages where I type the URL into the URL bar on my browser work fine, but the links insert a second index.php into every link, like this: http://www.rpg.net/wiki/index.php/Index.php/Special:Specialpages
Any idea what I might be missing here?
Thanks,
Shannon
MediaWiki (http://wikipedia.sf.net/): 1.4.2 PHP (http://www.php.net/): 4.1.2 (apache) MySQL (http://www.mysql.com/): 3.23.49-log
Shannon Appelcline wrote:
I seem to be getting one other minor problem in my new MediaWiki release.
If I use http://www.rpg.net/wiki, everything works fine.
However if I change to http://wiki.rpg.net (also changing $wgScriptPath from "/wiki" to "") then any pages where I type the URL into the URL bar on my browser work fine, but the links insert a second index.php into every link, like this: http://www.rpg.net/wiki/index.php/Index.php/Special:Specialpages
Any idea what I might be missing here?
First, make sure your paths are correct. From your description you should have something like:
$wgScriptPath = ""; $wgScript = "$wgScriptPath/index.php"; $wgArticlePath = "$wgScript/$1";
Make sure that $wgScript is never empty, and that $wgScript and $wgArticlePath's final values always begin with a / character. (Here they expand to "/index.php" and "/index.php/$1" respectively.)
If your virtual host is not setting the ServerName variable you may see it redirecting you to the wrong host, and you will have to also override the autodetected $wgServer:
$wgServer = "http://wiki.rpg.net";
And to make sure the changed configuration is reflected in links in pages, clear the objectcache table in the database:
DELETE FROM objectcache;
You can clear individual pages by adding ?action=purge to the end of the URL.
-- brion vibber (brion @ pobox.com)
Either setting $wgServer or clearing the objectcache did the trick; thanks very much.
Shannon
On 5/3/05, Brion Vibber brion@pobox.com wrote:
Shannon Appelcline wrote:
I seem to be getting one other minor problem in my new MediaWiki release.
If I use http://www.rpg.net/wiki, everything works fine.
However if I change to http://wiki.rpg.net (also changing $wgScriptPath from "/wiki" to "") then any pages where I type the URL into the URL bar on my browser work fine, but the links insert a second index.php into every link, like this: http://www.rpg.net/wiki/index.php/Index.php/Special:Specialpages
Any idea what I might be missing here?
First, make sure your paths are correct. From your description you should have something like:
$wgScriptPath = ""; $wgScript = "$wgScriptPath/index.php"; $wgArticlePath = "$wgScript/$1";
Make sure that $wgScript is never empty, and that $wgScript and $wgArticlePath's final values always begin with a / character. (Here they expand to "/index.php" and "/index.php/$1" respectively.)
If your virtual host is not setting the ServerName variable you may see it redirecting you to the wrong host, and you will have to also override the autodetected $wgServer:
$wgServer = "http://wiki.rpg.net";
And to make sure the changed configuration is reflected in links in pages, clear the objectcache table in the database:
DELETE FROM objectcache;
You can clear individual pages by adding ?action=purge to the end of the URL.
-- brion vibber (brion @ pobox.com)
MediaWiki-l mailing list MediaWiki-l@Wikimedia.org http://mail.wikipedia.org/mailman/listinfo/mediawiki-l
Shannon Appelcline wrote:
Either setting $wgServer or clearing the objectcache did the trick; thanks very much.
Noooo! You're suppossed to try one thing at a time so you know what actually fixes the problem!
Why do you think *I* never know what solved my computer problems? ;) Glad it worked for you.
Hínandil
mediawiki-l@lists.wikimedia.org