Jump to: navigation, search

Other languages:
Deutsch • ‎English • ‎español • ‎日本語 • ‎polski • ‎português • ‎سنڌي
Special pages: $wgSecureLogin
Whether to let user authenticate using https when they come from http.
Introduced in version: 1.17.0 (r75585)
Removed in version: still in use
Allowed values: boolean
Default value: false
Other settings: Alphabetical | By function


If true, forces users to authenticate using https when they come from http, but only if you use a protocol-relative URL in $wgServerManual:$wgServer (otherwise this setting is ignored).

From 1.22 on, use $wgDefaultUserOptionsManual:$wgDefaultUserOptions to set prefershttps false by default if you want HTTP users to stay on HTTP after login by default.

Based on an idea by George Herbert on wikitech-l: mailarchive:wikitech-l/2010-October/050071.html.

Setting after 1.17[edit]

You will need to set $wgServer as following.

$wgServer           = "//";
$wgSecureLogin      = true;

See also[edit]