WordPress 后台页面强制 HTTPS 加密

修改 wp-config.php 在 require_once(ABSPATH . 'wp-settings.php'); 之前,加
define('FORCE_SSL_ADMIN', true);

就能使得后台强制加密了;

而加入一行

define('FORCE_SSL_LOGIN', true);

就可以使登录页面强制加密了~

NGINX ssl 设定参考官方 wiki:
http://nginx.org/en/docs/http/ngx_http_ssl_module.html

除非注明, 风波竹林 文章均为原创,转载请以链接形式标明本文地址
本文地址: https://blog.fbzl.org/wordpress后台页面强制https加密/

发表评论