Manual:$wgCanonicalServer
From MediaWiki.org
General Settings: $wgCanonicalServer | |
---|---|
Server name with protocol to use for links to the wiki from other places |
|
Introduced in version: | 1.18.0 (r94995) |
Removed in version: | still in use |
Allowed values: | URL string |
Default value: | $wgServer; if $wgServer is protocol-relative, the HTTP equivalent will be used |
Other settings: Alphabetical | By Function
Details[edit | edit source]
Server name with protocol (HTTP or HTTPS) to use for links to the wiki from IRC feeds and e-mail notifications. Must be fully qualified, even if $wgServer is protocol-relative.
You can often ignore this variable. However, if you have set $wgServer to a protocol-relative URL (for example, //www.mediawiki.org
) and you would like links to your wiki to use HTTPS, set this variable to the equivalent HTTPS URL (for example, https://www.mediawiki.org
).
Example[edit | edit source]
$wgServer = '//example.com'; $wgCanonicalServer = 'https://example.com'; // use HTTPS for links. Default would be 'http://example.com'