Wordpress admin login cookies blocked error after moving servers

后端 未结 15 1788
被撕碎了的回忆
被撕碎了的回忆 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:40

    I was getting this same error.

    I had hard coded the Home and SiteURL in wp-config.php for a brand new website - no plugins even installed.

    The problem: I had a space at the end of the URL.

    define('WP_HOME','http://100.000.000.01/~acctname/wp ');
    define('WP_SITEURL','http://100.000.000.01/~acctname/wp ');
    

    Removing the space fixed this error.

    define('WP_HOME','http://100.000.000.01/~acctname/wp');
    define('WP_SITEURL','http://100.000.000.01/~acctname/wp');
    

提交回复
热议问题