Manual:$wgScriptPath

From MediaWiki.org
Jump to navigation Jump to search
Other languages:
Deutsch • ‎English • ‎Nederlands • ‎Türkçe • ‎español • ‎français • ‎magyar • ‎polski • ‎português • ‎português do Brasil • ‎čeština • ‎Ελληνικά • ‎русский • ‎العربية • ‎中文 • ‎日本語
URLs and file paths: $wgScriptPath
The base URL path.
Introduced in version:pre 1.1.0
Removed in version:still in use
Allowed values:(relative path)
Default value:'/wiki', but automatically overridden by installer to be '/w'

Details[edit]

The base path in a URL, used to build URLs to refer to other parts of this wiki. This might be a virtual path, which might be processed using apache's mod_rewrite (for example), to determine the directory in which MediaWiki assets are found.

Note: A lot of other variables are defined relative to this one. If you redefine this in your LocalSettings.php then all dependent variables will need checking and might need redefining too!

This will be set to your base directory in LocalSettings.php at installation time. See Manual:Short URL for details.

See also[edit]

Example[edit]

$wgScriptPath = '/w';