Wordpress admin login cookies blocked error after moving servers

后端 未结 15 1789
被撕碎了的回忆
被撕碎了的回忆 2020-12-24 14:13

Background: had a working Wordpress 3.7 site at olddomain.com.

I moved it to newdomain.com successfully, and in the process added this to wp-config:

         


        
15条回答
  •  时光说笑
    2020-12-24 14:28

    I came across this error when trying to install a wordpress site on localhost. The problem was this line inside the .htaccess

    Header edit Set-Cookie ^(.*)$ $1;HttpOnly;Secure

    It prevents cookies being set if not on https. Just had to remove the line.

提交回复
热议问题