手册:$wgArticlePath
Jump to navigation
Jump to search
Outdated translations are marked like this.
URL及檔案路徑: $wgArticlePath | |
---|---|
The base URL used to create article links. |
|
引进版本: | pre 1.1.0 |
移除版本: | 仍在使用 |
允许的值: | (相对或绝对的网址,以“$1”来代表网页标题。 如果您使用相对URL,它必须以斜线(/)开头。) |
默认值: | $code1,或$code2取决于$UsePathInfo的值 (Note: The default value of this variable depends on other variables, such as the values set in Setup.php , after LocalSettings.php is executed) |
其他设置: 按首字母排序 | 按功能排序 |
详情
这是基础URL将被用于构建在MediaWiki所有内部链接。 主要使用默认值节点的相对链接index.php脚本,但如果你使用.htaccess设置,可以按需改变。
例子
$wgArticlePath = '/wiki/$1';
参见
- $wgScript
- $wgScriptPath
- $wgUsePathInfo
- $wgVariantArticlePath
- 手册:短链接 - * 参见 Manual:Short URL 关于配置条目路径的更多信息。
- Extension:NamespacePaths - Allows custom article paths to be mapped to namespaces of the wiki