CentOS7
MediaWiki 1.30.0
PHP 7.1.16 (apache2handler)
MariaDB 5.5.56-MariaDB
ICU 50.1.2
I have a mediawiki running on a directory, /mw/ and it generates the /mw/index.php/Article
I just want to remove the index.php section.
I have root access and have run Redworks' ShortURL tool. My ShortURL stuff to go into my virtual host is as follows:
RewriteEngine On
RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} !-f
RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} !-d
RewriteRule ^(.*)$ %{DOCUMENT_ROOT}/mw/index.php [L]
And my LocalSettings.php
$wgScriptPath = "/mw";
$wgScriptExtension = ".php";
$wgArticlePath = "{$wgScriptPath}/$1";
It seems to work, but I constantly get a 404 Not Found error. It redirects but doesn't actually process.
I cannot get it to work no matter what. Any help would be appreciated.