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

Hi. Like many people, I was trying to shorten the url of my wiki by removing "index.php" from "example.org/wiki/index.php/Main_Page". So I modified LocalSettings.php and created .htaccess to paste the following codes in. Both are located in the root of my wiki folder.

Localsettings.php $wgScriptPath = "/wiki"; $wgArticlePath = "$wgScriptPath/$1";

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

After doing so, I can no longer access my wiki as typing in the url I normally used (example.org/wiki) gives me the error:

The requested URL /wiki/wiki was not found on this server.

Interestingly, I can still access my site (although the format/structure is wrong) by completely omitting "/wiki"  and using the url:

example.org/index.php/Main_Page.

Why is this happening? I just started learning mediawiki last week so I pretty much know next to nothing. Any help would be much appreciated.

Edit: I'd also like to add that I tried removing the code I added on LocalSettings.php and .htaccess to see if it would revert back to the original long url but I still encounter the same errors.