Thread:Project:Support desk/Is it possible to enable ssl for login user automatically?/reply (2)

I have to say it does not work. The ssl was set up and work just fine by replace http by https manually.

Mediawiki 1.20 set as:

$wgServer          = "http://zh.moegirl.org"; $wgSecureLogin     = true;

The login icons in the up right become a gold lock, but the links to login & creat account page are still http. There is a option choice "keep https" but it does not work at all.

If I set:

$wgServer          = "https://zh.moegirl.org"; $wgSecureLogin     = true;

Then anonymous will get https page, BUT login users visit http page.I believe this is a mistake, someone write it opposite way compare to MW 1.17.

Now I am using if(isset($_SERVER["HTTPS"])) $wgServer          = "https://zh.moegirl.org"; else $wgServer          = "http://zh.moegirl.org"; $wgSecureLogin     = true; but this is just a temporary solution, because if in localsetting will cause update failure.