Say I do WP site some of the introductory experience to share to everyone

Source: Internet
Author: User

Intermediary transaction http://www.aliyun.com/zixun/aggregation/6858.html ">seo diagnose Taobao guest cloud host technology Hall

A few days ago my website WP love to find the theme (www.2zzt.com) for the record, hurriedly WordPress blog moved to work, although encountered some small problems, but still be completely moved back to the country, here a brief introduction to some of the whole process of moving, Minor problems encountered in the middle and the corresponding solutions. To be honest, WordPress blog Moving is relatively simple, as long as the attention to detail, there is no big problem.

WordPress Blog Moving Several situations:

1. Change the host does not change the domain name

2. Change the domain name does not change the host

3. Change the domain name also change the host

Because my blog is not replaced, so here only to talk about the first case, that is, the host does not change the domain name WordPress complete moving process:

First, backup to the original host space

The content of the backup has two parts: one is the record of the blog database, the second is the full site of the blog backup (that is, WordPress blog all directories and files), the database can be backed up by phpMyAdmin, directly exported SQL files can be, the whole station of data directly through FTP to package download, Are relatively simple, here is no longer to repeat.

And then to the existing host space for the import

Import content is also divided into two parts: one is the introduction of blog database, the second is the introduction of the whole station blog. The database import can import the backed up database SQL file directly into the current database, and you need to modify the database parameters related to the wp-config.php file under the site root directory, as shown in the following figure:

/**wordpress Database Name * *

Define (' db_name ', ' Your database name ');

/**mysql Database Username * *

Define (' Db_user ', ' Your database username ');

/**mysql Database Password * *

Define (' Db_password ', ' Your Database password ')

/**mysql Host * *

Define (' db_host ', ' localhost ');

Fill in your new host space database name, database username and password. Note that the MySQL host this default is ' localhost ', if you are a Windows host, do not need to modify, if it is a Linux host, you need to fill in the address of the database, I am in the process of importing the database can not connect the error, It turns out that this is not the correct option, and this is probably the reason that the database cannot be accessed after the data is imported.

Also, attach the "cannotmodifyheaderinformation" Error Solution:

After the move is completed, in the login backstage, there has been a "cannotmodifyheaderinformation" this error, the reason for this error is the Chinese version of WordPress negligence and Notepad deficiencies, Extra characters are added to the wp-config.php file. There are two ways to fix this:

1. Edit wp-config.php files using EmEditor or other editors that can differentiate between Utf8withbom and Utf8nobom, and save them in Utf8nobom encoding format; 2. Edit the wp-config.php file using Notepad or other editors that cannot distinguish between Utf8withbom and Utf8nobom, and save it as an ANSI or GB2312 encoded format;

OK, complete WordPress blog Move tutorial is this, which inevitably have flaws, welcome to point out.

Love to find the theme www.2zzt.com

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.