[Mediawiki-l] Removing index.php in ALL URLs

Kate Turner kate.turner at gmail.com
Thu Dec 23 07:44:53 UTC 2004

On Thu, 23 Dec 2004 07:23:07 +0000, paul-wikil at wibbles.org
<paul-wikil at 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]


More information about the MediaWiki-l mailing list