Hey Brion,
I read those FAQs, and did not find the answer I'm looking for.... How does
apache translate the $1 part of $wgScript/$1 into the get variable
'article'. Or, perhaps apache puts it into a predefined variable that
MediaWiki uses -- I checked the source code, but perhaps I have to delve
deeper? Unless you know what it is? I'll have to try some tests and phpinfo
it.....
Thank you Brion (and Rowan too),
Graeme
-----Original Message-----
From: mediawiki-l-bounces(a)Wikimedia.org
[mailto:mediawiki-l-bounces@Wikimedia.org] On Behalf Of Brion Vibber
Sent: January 17, 2006 12:45 AM
To: MediaWiki announcements and site admin list
Subject: Re: [Mediawiki-l] $wgArticlePath when using CGI
Graeme Canivet wrote:
Hello,
I wondered why you must use ugly URLs with the CGI module...?
In most cases, the additional PATH_INFO bit doesn't work with PHP in CGI
mode.
All kinds of ugly loops and breakage result.
If you really know it works, you can poke around and change it.
Also, I wondered how the rewrite $wgArticlePath =
"$wgScriptPath/$1"
works.... When I pull up an article in my wiki I use the url
index.php/ArticleName, however, I have never written a rewrite rule so
I am unsure how Apache knows to rewrite "$wgScriptPath/$1" into
"$wgScript?title=$1".
There's an entire document dedicated to such topics; see the MediaWiki FAQ.
(Link is in the README, the RELEASE-NOTES and can also be easily googled.)
-- brion vibber (brion @
pobox.com)