Foreword
WordPress, the world’s most popular blog system, uses simple and functional tools that have a very large number of users to build a site. For station leaders, moving websites is rare, sometimes we need to change the mainframe space, move the sites from one server to another, or change domain names.
Ready.
WordPress moves in two ways, replacing domain names and not changing domain names.
Note:The site files and databases must be backed up before moving, and problems with moving can be restored! The following are described in two ways: plugins and manual methods, which are simpler and more generic; the method of replacing domain names is written separately at the end and can be used independently.
Method I. Migration of websites using WordPress moving plugins
Recommended use All-in-One WP Migration The mover plugin, which packs all the station data directly, is very convenient to migrate.
# 1. Exporting website files
Landing WordPress backstage, searching and installing all-in-One WP Migration.

Enter the plugin from the left bar after enabled -> Export site -> Export to file. (Advanced options default or tick as required)

Waits for the file to be packed and downloaded locally. Get a suffixed file named .wpress.

#2. Import website files into the new host space
Parsing domain names to the new host space. Install WordPress on the new mainframe space, install All-in-One WP Migration in the backstage. Here. Downloads the Basic version assistive plugin, all-in-one-wp-migration-file-extension.zip, which is manually uploaded to unsize files.<512M) Imports a file that has just been downloaded to the local site for recovery.

Imports take some time to wait patiently. After importing, you ask whether the file is overwritten and confirmed. You then change the fixed link settings and save them twice.

Move out!
Method two, WordPress, manual move.
# 1. Back-up website documents and databases
Enter the original website server/host backstage, pack and download all files from the site root directory to the local level. Enter phpMyAdmin, select the website database, export sql files to the local level.

2. Upload website files and import databases
Uploads website files to the new host ‘s web directory and depresses. Creates a new database in phpMyAdmin and imports the above website database sql files.
#3. Modify wp-config.php
Edit wp-config.php files, change database names, usernames, passwords and connect to the new host.
/** 数据库名称 */
define('DB_NAME', '名称');
/** 数据库用户名 */
define('DB_USER', '用户名');
/** 数据库密码 */
define('DB_PASSWORD', '密码');
Decrypt the domain name to the new host space and enter WordPress backstage to update the fixed connection, complete.
Method III. Use WordPress self-port/import
WordPress tools contain import/export functions. Only the content of a website is migrated, and therefore it is incomplete and less recommended for use.

WordPress method for changing domain names
Enter phpMyAdmin, select the website database -> SQL -> Paste the code below -> Implementation.
UPDATE wp_options SET option_value = REPLACE(option_value, '旧域名', '新域名') WHERE option_name = 'home' OR option_name = 'siteurl';
UPDATE wp_posts SET post_content = REPLACE(post_content, '旧域名' , '新域名');
UPDATE wp_posts SET guid = REPLACE(guid, '旧域名' ,'新域名');

Tips
- We have to get back up before we move! Back up!
- All-in-One WP Migration only supports the import of documents up to 512M;
- Remember to update the fixed link after moving the site, setting -> Fixed Link -> (a) Preservation;
- Before moving, it is possible to reduce the size of the site by cleaning up redundant content on the website such as obsolete plugins, backup documents in the station.
Concluding remarks
WordPress’s site is still simple to move, thanks to the rich plugin ecology, and a wide range of moving and backup plug-ins can be selected in order of installation. If website files are small, it would be easier to use plugins; if documents were larger, they might be slow to import them and upload them manually more quickly.
未经允许不得转载:萌萌Apprentissage » WordPress Summary of Moving Methods: Migration of Hosts and Replacement of Domain Names
How to set auto-optimize auto-autoptimize plugins for your WordPress site
Fix the Alt properties of Wordpress Google SEO search engine to optimize missing images
WordPress Configure Memcached Cache Course (no code required)
Use the tower panel to accelerate the optimization of the course on Wordpress 4 paces
Wordpress used redis or memcached to make site caches optimized.
Wordpress website moveovers to change domain name solutions
Method to change the default login page name for Wordpress wp-login
WordPress User Registration Increase Authentication Bans Machine Registration