WordPress website (relocation) moving tutorial

WordPress website (relocation) moving tutorial

WordPress website (relocation) moving tutorial

Moving is divided into three steps:

1. Back up blog website files and databases;

2. Transfer the website files to the new space and import the database into the new space;

3. Modify website configuration and database;

4. Check the transfer results.

Please note that the PHP version should be consistent when moving, otherwise the backend will not be able to open and the website will be inaccessible. Please prepare the FTP tool by yourself before moving. Here we recommend using

FlashFXP cracked version step one: backup blog website files and database

1. Download and back up the blog files in the original space. If the original space supports online decompression, it is recommended to download it in a package, which will reduce the download size and save a lot of time. (I usually use FTP to synchronize and back up any updated articles to my local computer. It is best for everyone to have this habit, otherwise you will regret it if something unexpected happens!)

2. Back up the database. You can use phpadmin, Empire Backup King, or a database backup plug-in such as WP-DBManager. You can choose a method that you are familiar with. (It is recommended to back up as many formats as possible, such as sql, gz, and zip. You don’t know which one the next host will support.)

Step 2: Upload blog files and import them into the database

1. Use FTP to transfer the blog files to the new space. Just like downloading, if the new space supports online decompression, it is recommended to upload them in a package. This will save a lot of time and some traffic. If you have set up pseudo-static, just copy the pseudo-static rules to the new server.

2. Import the database. PHPMyAdmin and Empire Backup King can do it. (You need to create a database in the new host, and then import the database you exported previously)

Step 3: Modify website configuration and database (critical)

1. Modify the wp-config file. It is best not to use Notepad to modify it. Use an editor such as Notepad++ or UltraEdit to change the database information in it to the database information of your new space, as follows:

WordPress website (relocation) moving tutorial

/** Name of the WordPress database */

define('DB_NAME', 'Your new space database name');

/**MySQL database username*/

define('DB_USER', 'Your database username');

/**MySQL database password*/

define('DB_PASSWORD', 'Your database login password');

/**MySQL host*/

define('DB_HOST', 'your database address');
Just fill in the database name, database username and password of your new hosting space. Note that the default value for MySQL host is 'localhost'. If you are using a Windows host, you do not need to change it. If you are using a Linux host, you may need to fill in the database address.

  1. Enter the phpadmin of the new space and modify the database: modify the values ​​of the "siteurl" and "home" fields in the database table wp_options to your new domain name (if you have not changed the domain name, please ignore it);

3. After resolving the domain name to the space, log in to your wp background and change the address of your blog to your new domain name.

WordPress website (relocation) moving tutorial

4. The original article contains links or images that use the addresses of the previous domain name, so you also need to modify those addresses. You can modify the database directly in phpadmin or use the velvet-blues-update-urls plugin (recommended). For example, in phpadmin, execute the following statement:

UPDATE wp_options SET option_value = REPLACE(option_value,'old address','new address');

UPDATE wp_posts SET post_content = replace(post_content,'old address','new address');

UPDATE wp_posts SET post_excerpt = replace(post_excerpt,'old address','new address');

UPDATE wp_posts SET guid = replace(guid, 'old address', 'new address');
Step 4: Open the new website and follow the above steps to complete the move successfully.

<<:  Advertising strategy trio: Why do we need to advertise, where to advertise, and how to advertise?

>>:  How to do a good job of Zhihu marketing for a brand?

Recommend

User Operation: How to plan a user portrait system?

The term user portrait is very popular, but there...

The "Top Ten Product Traps" Often Ignored When Planning Promotion

Introduction丨If you don’t understand product plan...

360 search advertising promotion statistics report data!

How long can I view data? You can query data with...

Why do some people get tanned when exposed to the sun, while others get red?

Reviewer of this article: Zhou Xiaobo, Doctor of ...

How long will these IP marketing be popular?

No one can tell how long they will remain popular...

What are the equipment for real-name authentication at construction sites?

With the introduction of various national policie...