Contents

WordPress管理画面のログインを強制的にHTTPSにする方法

Contents

wp-config.php の 「That’s all, stop editing!」 の上に下記の行を追加することで出来ました。 define(‘FORCE_SSL_ADMIN’, true);

[caption id=“attachment_319” align=“alignleft” width=“600”]/wp-content/uploads/2018/08/Screen-Shot-2018-08-06-at-9.00.25-300x14.png 編集前[/caption]

[caption id=“attachment_320” align=“alignleft” width=“600”]/wp-content/uploads/2018/08/Screen-Shot-2018-08-06-at-9.01.09.png 編集後[/caption]

[caption id=“attachment_321” align=“alignleft” width=“296”]/wp-content/uploads/2018/08/Screen-Shot-2018-08-06-at-9.01.54.png http でアクセスしても強制的に https へリダイレクトされました[/caption]