Thread:Project:Support desk/Links to non-existent pages don't go to the "missing page" page when SEF is enabled/reply (2)

The problem here is that red links point to  instead of

Having both $wgScriptPath and $wgArticlePath pointing to the same path on the server is a very bad practice that can make some pages inaccessible.

To fix your particular problem, this is how you must configure it:

$wgScriptPath = ""; $wgScript = "{$wgScriptPath}/index.php"; $wgScriptExtension = ".php"; $wgArticlePath = "/$1";

But I recommend moving your installation to  and use this instead:

$wgScriptPath = "/w"; $wgScript = "{$wgScriptPath}/index.php"; $wgScriptExtension = ".php"; $wgArticlePath = "/$1";

and change rewrite rules accordingly:

RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ /w/index.php?title=$1 [NC,L,QSA]