Thread:Project:Support desk/url redirect problem/reply (3)

You should have:

$wgScriptPath = ""; $wgScriptExtension = ".php"; $wgScript = "{$wgScriptPath}/index.php"; // This, or simply delete this line so it contains the default value. $wgArticlePath = "$1"; // Changed $wgUsePathInfo = false;

Note that your current setup can cause unexpected problems, since you're using the same path for a rewrite rule and for accessing index.php. That means that it won't be possible for your wiki to access to a page with the same name as any file or folder on your MediaWiki installation, like for example FAQ, docs, images, etc. You should be advised against using this setup.

Instead, you should set $wgArticlePath to a path different than the location of index.php. For example, "wiki/$1" and change rewrite rules accordingly.