Why does wp-admin login page failed after changing to https because of looping redirection and how to solve it?

After changing my Wordpress from http to https, the wp-admin login page failed because of too many redirections.

I finally solved this problem by adding the following line to wp-config.php:
$_SERVER['HTTPS'] = 'on';

评论

此博客中的热门博文

Configure shadowsocks transparent proxy + gfwlist(PAC) on OpenWRT Router

Openwrt路由器上配置shadowsocks透明代理+gfwlist(PAC)

Configure V2Ray(Shadowsocks mode) + 加速:普通BBR/魔改BBR on KVM VPS (Tested on Ubuntu 16.04)