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';

评论

此博客中的热门博文

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

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

Using Haproxy + shadowsocks (ha + ss) to setup multi ss backend and load balance