I pretty much just followed the instructions on the media wiki website. Only difference was I used this in my .htaccess:
RewriteRule ^wiki/(.*) /mediawiki/index.php?title=\$1 [PT,L,QSA]
I think this was also from the mediawiki website somewhere. Initially I put /wiki copying their alias command, but that was wrong.