Handbuch:$wgArticlePath
Server-URLs und Dateipfade: $wgArticlePath | |
---|---|
The base URL used to create article links. |
|
Eingeführt in Version: | pre 1.1.0 |
Entfernt in Version: | weiterhin vorhanden |
Erlaubte Werte: | (relative or absolute URL, with '$1' to represent page title. Wenn du eine relative URL verwendest, muss sie mit einem Schrägstrich (/) beginnen.) |
Standardwert: | {$wgScript }?title=$1, oder {$wgScript}/$1 hängen von dem Wert von $wgUsePathInfo ab (Note: The default value of this variable depends on other variables, such as the values set in Setup.php , after LocalSettings.php is executed) |
Andere Einstellungen: Alphabetisch | Nach Funktion |
Details
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.
Example
$wgArticlePath = '/wiki/$1';
Siehe auch
- $wgScript
- $wgScriptPath
- $wgUsePathInfo
- $wgVariantArticlePath
- Handbuch:Kurz-URL - for more information on URL configuration.
- Extension:NamespacePaths - Allows custom article paths to be mapped to namespaces of the wiki