Linux:MediaWiki短域名

See: https://shorturls.redwerks.org/?source=userdata&url=https%3A%2F%2Fwiki.riguz.com%2Findex.php%2F%25E9%25A6%2596%25E9%25A0%2581&server=apache&mod_php=1&script=%2Findex.php&articlepath=%2Fwiki%2F%241&fcgi_pass=127.0.0.1%3A9000&hashed_uploads=1&thumb_handler=1&rdns_origin=wiki.riguz.com&rdns_canon=wiki.riguz.com&rdns_addr=152.32.186.249&submit_has_root_no=I+don%27t+have+root+access.

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

$wgEnableUploads  = true;
$wgGenerateThumbnailOnParse = false;
# .htaccess
RewriteEngine On
RewriteRule ^/?wiki(/.*)?$ %{DOCUMENT_ROOT}/index.php [L]

RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} !-f
RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} !-d
RewriteRule ^/?images/thumb/[0-9a-f]/[0-9a-f][0-9a-f]/([^/]+)/([0-9]+)px-.*$ %{DOCUMENT_ROOT}/thumb.php?f=$1&width=$2 [L,QSA,B]

RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} !-f
RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} !-d
RewriteRule ^/?images/thumb/archive/[0-9a-f]/[0-9a-f][0-9a-f]/([^/]+)/([0-9]+)px-.*$ %{DOCUMENT_ROOT}/thumb.php?f=$1&width=$2&archived=1 [L,QSA,B]