手册:$wgArticlePath

This page is a translated version of the page Manual:$wgArticlePath and the translation is 92% complete.
服务器URL及文件路徑: $wgArticlePath
用于创建文章链接的基础URL。
引进版本:pre 1.1.0
移除版本:仍在使用
允许的值:(相对或绝对的网址,以“$1”来代表网页标题。 如果您使用相对URL,它必须以斜线(/)开头。)
默认值:{$wgScript }?title=$1,或{$wgScript}/$1取决于$wgUsePathInfo 的值
(Note: The default value of this variable depends on other variables, such as the values set in Setup.php , after LocalSettings.php is executed)

详情

这是被用于构建MediaWiki内所有内部链接的基础URL。 主要使用默认值节点的相对链接index.php脚本,但如果你使用.htaccess设置,可以按需改变。

示例

$wgArticlePath = '/wiki/$1';

参见