1 回答

TA貢獻(xiàn)1810條經(jīng)驗(yàn) 獲得超4個贊
我終于使用這個短URL教程中的設(shè)置使它工作:
添加到根文件夾中(在Wordpress等其他網(wǎng)站的規(guī)則之前):.htaccess
# BEGIN MediaWiki
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^wiki/(.*)$ w/index.php?title=$1 [PT,L,QSA]
RewriteRule ^wiki/*$ w/index.php [L,QSA]
RewriteRule ^wiki$ w/index.php [L,QSA]
</IfModule>
# END MediaWiki
已添加到 :LocalSettings.php
$wgScriptPath = "/w";
$wgArticlePath = "/wiki/$1";
$wgScriptExtension = ".php";
$wgUsePathInfo = true;
$wgResourceBasePath = $wgScriptPath;
- 1 回答
- 0 關(guān)注
- 139 瀏覽
添加回答
舉報