Manual:Short URL/wiki/Page title -- No Root Access, 1.13 alternative
From MediaWiki.org
The setup has been changed around a little by the original contributor because their host, 1and1, needed it to go to index.php5 to show an article.
This setup works flawlessly on 1.13 and 1.14.
[edit] LocalSettings.php
First of all, remove all other code you've added from any other Short URL Setups (If you've done any).
Next, add the following code after $wgSitename = "my wiki site";
$wgUsePathInfo = false; $wgArticlePath = "/wiki/$1";
[edit] .htaccess
Edit or add .htacces to the root folder (Not /w/), and replace with this code:
# rewrite rules to make default page the wiki and create pretty urls Options FollowSymLinks Indexes RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^wiki/(.*)$ /w/index.php?title=$1 [PT,L,QSA] RewriteRule ^wiki(//+)?$ /wiki/ [L,QSA] RewriteRule ^/*$ /wiki/ [L]
[edit] If no skins are loading...
Everything above works beautifully, but if you're hosted on MediaTemple, you'll need to add the following to make your skins/css load:
$wgStylePath = 'http://www.yourdomain.com/real_install_path/skins';