Manual:$wgScriptPath/de-formal

From Linux Web Expert

Revision as of 09:05, 17 August 2022 by imported>ThisCarthing (Created page with "== Details ==")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

<translate> Server URLs and file paths</translate>: $wgScriptPath
The base URL path.
<translate> Introduced in version:</translate>pre 1.1.0
<translate> Removed in version:</translate><translate> still in use</translate>
<translate> Allowed values:</translate>(relative path)
<translate> Default value:</translate>'/wiki', but automatically overridden by installer to be '/w'

Details

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.

Example

$wgScriptPath = '/w';

See also