Wordpress admin login cookies blocked error after moving servers

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

    Assuming you are running on a Unix/Linux type platform - please ensure you have copied your .htaccess file from your original server and updated any references to the old domain within that file. It will be in the root of your wordpress deployment (if you are using it).

    Either that or you may have a reference to your old domain somewhere in your wp_options table within the database.

    Be forewarned that as you have moved from one domain to another, images and media locations within posts may need to be updated. You can either do that yourself directly within the database, use a find/replace utility or manually re-point your images within your posts. An alternative method to fix your post data is to export all your posts from your old site (from within the admin panel) - Tools > Export > All posts; then manually update the URL within that resultant file before importing to your new site.

    All of this and much more is covered over at codex.wordpress.org. For more information see this link:

    http://codex.wordpress.org/Changing_The_Site_URL

    IMPORTANT NOTES:

    1. If you are going to modify anything directly within the database, make sure you read the section that talks about GUIDs

    2. If you are using Better WP Security, there are other things you may need to do, but based on what you are describing, I doubt you have it installed.

提交回复
热议问题