Podręcznik:$wgArticlePath

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.
Wprowadzono w wersji:pre 1.1.0
Usunięto w wersji:nadal w użyciu
Dozwolone wartości:(relative or absolute URL, with '$1' to represent page title. If you use a relative URL, it must start with a slash (/).)
Domyślna wartość:{$wgScript }?title=$1, or {$wgScript}/$1 depending on value of $wgUsePathInfo
(Uwaga: Domyślna wartość tej zmiennej zależy od innych zmiennych, takich jak wartości ustawione w Setup.php po wykonaniu LocalSettings.php )

Szczegóły

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.

Przykład

$wgArticlePath = '/wiki/$1';

Zobacz też