Manual:$wgArticlePath/uk
From Linux Web Expert
<translate> Server URLs and file paths</translate>: $wgArticlePath | |
---|---|
The base URL used to create article links. |
|
<translate> Introduced in version:</translate> | pre 1.1.0 |
<translate> Removed in version:</translate> | <translate> still in use</translate> |
<translate> Allowed values:</translate> | (relative or absolute URL, with '$1' to represent page title. If you use a relative URL, it must start with a slash (/).) |
<translate> Default value:</translate> | {$wgScript }?title=$1, or {$wgScript}/$1 depending on value of $wgUsePathInfo (<translate> Note:</translate> <translate> The default value of this variable depends on other variables, such as the values set in <tvar|1>Setup.php </>, after <tvar|2>LocalSettings.php </> is executed</translate>) |
<translate> Other settings:</translate> <translate> Alphabetical</translate> | <translate> By function</translate> |
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';
See also
- $wgScript
- $wgScriptPath
- $wgUsePathInfo
- $wgVariantArticlePath
- Manual:Short URL - for more information on URL configuration.
- Extension:NamespacePaths - Allows custom article paths to be mapped to namespaces of the wiki