Manual: $wgArticlePath
Appearance
| Server URLs and file paths: $wgArticlePath | |
|---|---|
| The base URL used to create article links. |
|
| Introduzido na versão: | Antes de 1.1.0 |
| Removido na versão: | Ainda em utilização |
| Valores permitidos: | (relative or absolute URL, with '$1' to represent page title. If you use a relative URL, it must start with a slash (/).) |
| Valor predefinido: | {$wgScript}?title=$1, or {$wgScript}/$1 depending on value of $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.) |
| Outras definições: Alfabeticamente | Por função | |
Detalhes
This is the base URL that will be used to construct all internal links within MediaWiki. The default value points it to the main index.php script using a relative URL, but if you are using .htaccess for pretty URLs, this can be altered as required.
Exemplo
$wgArticlePath = '/wiki/$1';
Consultar também
- $wgScript
- $wgScriptPath
- $wgUsePathInfo
- $wgVariantArticlePath
- Manual: URL Curto - para mais informação sobre a configuração do URL.
- Extension:NamespacePaths - Permite que os caminhos do artigo personalizados sejam mapeados para os espaços nominais da wiki