Thread:Project:Support desk/Short URL Issues. The requested URL /wiki/wiki was not found on this server./reply

Take a look at Manual:Short_URL/Apache.

First of all, you should have a clear idea of how URLs should look. There are 2 types of urls: Short urls (those without index.php) and normal ones. Short URLs are rewritten by the server with the RewriteRule statements to reach the normal ones, transparently to the user.

Note that you shouldn't have long URLs inside a Short URL path, otherwise the server will rewrite both and/or cause many issues. In your example, $wgScriptPath (for Long URL, this is the path before index.php) is /wiki, while $wgArticlePath (which is the path for Short URL with article name) is also in /wiki.

You should either put the wiki directly on the root directory (/) or on a different path than /wiki (for example, /w as it's used here). and then change:

$wgScriptPath = "/"; // or change to /w if the wiki is installed at /w $wgArticlePath = "/wiki/$1";

And then change he RewriteRule to

RewriteRule ^wiki/?(.*)$ /index.php?title=$1 [L,QSA]

Or

RewriteRule ^wiki/?(.*)$ /w/index.php?title=$1 [L,QSA]