Manual:$wgArticlePath

From mediawiki.org
This page is a translated version of the page Manual:$wgArticlePath and the translation is 42% complete.
Server URLs and file paths: $wgArticlePath
The base URL used to create article links.
Introducido en la versión:pre 1.1.0
Eliminado en la versión:aún se usa
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 predeterminado:{$wgScript }?title=$1 o {$wgScript}/$1 dependiendo del valor de $wgUsePathInfo
(Nota: The default value of this variable depends on other variables, such as the values set in Setup.php , after LocalSettings.php is executed)

Detalles

Esta es la URL base que se usará para construir todos los enlaces internos dentro de 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';

Véase también