@skew
I tried to use what you posted and realized that mine is installed differently than yours, and I was missing the stuff to put into the LocalSettings.php so it didn't work.
@ixokai
I am not really a server admin. I think I posted ngnix thinking that I had installed it to get the Apache I got? I installed CentOS 7 because it was suggested to be the easiest one for PennMUSH to be installed/used with.
I use httpd to mess with my stuff, like apachectl to restart it when I make changes. I'm far from a server admin, so I'm kinda blind when it comes to crazy changes.
The rewrite rules it's giving me are:
RewriteEngine On
RewriteRule ^/?mw/wiki(/.*)?$ %{DOCUMENT_ROOT}/mw/index.php [L]
RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} !-f
RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} !-d
RewriteRule ^/?mw/images/thumb/[0-9a-f]/[0-9a-f][0-9a-f]/([^/]+)/([0-9]+)px-.*$ %{DOCUMENT_ROOT}/mw/thumb.php?f=$1&width=$2 [L,QSA,B]
RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} !-f
RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} !-d
RewriteRule ^/?mw/images/thumb/archive/[0-9a-f]/[0-9a-f][0-9a-f]/([^/]+)/([0-9]+)px-.*$ %{DOCUMENT_ROOT}/mw/thumb.php?f=$1&width=$2&archived=1 [L,QSA,B]
And the LocalSettings stuff:
$wgScriptPath = "/mw";
$wgScriptExtension = ".php";
$wgArticlePath = "{$wgScriptPath}/wiki/$1";
When I enter all that, it returns a 404 Not Found error, but it does remove the index.php from the site.