Manual:$wgArticlePath

From MediaWiki.org
Jump to navigation Jump to search
This page is a translated version of the page Manual:$wgArticlePath and the translation is 42% complete.
Other languages:
Deutsch • ‎English • ‎Nederlands • ‎Tiếng Việt • ‎Türkçe • ‎dansk • ‎español • ‎français • ‎magyar • ‎polski • ‎português do Brasil • ‎svenska • ‎русский • ‎العربية • ‎中文 • ‎日本語 • ‎한국어
URLs and file paths: $wgArticlePath
The base URL used to create article links.
Introduced in version:pre 1.1.0
Removed in version:still in use
Allowed values:(relative or absolute URL, with '$1' to represent page title. If you use a relative URL, it must start with a slash (/).)
Default value:{$wgScript }?title=$1, eller {$wgScript}/$1 alt afhængig af værdien for $wgUsePathInfo
(Note: The default value of this variable depends on other variables, such as the values set in $1, after $2 is executed)

Detaljer

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.

Eksempel

$wgArticlePath = '/wiki/$1';

Se også