You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
假设在目录 /home/web 中解压 mediawiki tarball,重命名为 m, 那在
mediawiki的配置 /home/web/m/LocalSettings.php 中设置:
## The URL base path to the directory containing the wiki;
## defaults for all runtime URL paths are based off of this.
## For more information on customizing the URLs please see:
## http://www.mediawiki.org/wiki/Manual:Short_URL
$wgScriptPath = "/m";
$wgScriptExtension = ".php";
$wgArticlePath = "/wiki/$1";
$wgUsePathInfo = true;
## The relative URL path to the skins directory
$wgStylePath = "$wgScriptPath/skins";
以上配置可以实现:
使用 http://ip/wiki/ 来访问 mediawiki,其他 URL
的前面自动会加上 /wiki/ 。
cidc 能否添加类似的功能?
Original issue reported on code.google.com by [email protected] on 18 Apr 2012 at 5:22
The text was updated successfully, but these errors were encountered:
Original issue reported on code.google.com by
[email protected]
on 18 Apr 2012 at 5:22The text was updated successfully, but these errors were encountered: