On Nov 30, 2004, at 3:10 PM, Patrick Atoon wrote:
---- LocalSettings.php
----------------------------------
$wgScriptPath = "";
$wgScript = $wgScriptPath . "/index.php";
---------------------------------------------------------
"Seems", because there is a strange balance between Apache and
PHP keeping the "index.php" most of the time out of the URL. The
correct setup would be:
What have you set $wgArticlePath to? This is what is used for plain
view URLs, and should be the focus of your efforts.
---- LocalSettings.php
----------------------------------
$wgScriptPath = "";
$wgScript = "";
Don't ever do that, as you won't get correct URLs. $wgScript must be an
absolute path, starting with a slash, and needs to consistently
resolve.
# Rewrite
http://wiki.domain.tld/article properly,
this is the main
rule
RewriteRule ^(.*)$ /index.php/$1 [L,QSA]
This will fail for page titles containing "?"
To get full coverage, use the rewrite patch for Apache 1.3.x (in the
maintenance subdirectory) which converts ampersands, and send those as
a query string instead of path_info.
-- brion vibber (brion @
pobox.com)