How to move the WordPress site perfectly

Source: Internet
Author: User
Keywords WordPress

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

When I had to relocate my site to a new domain, I was thinking about how to achieve it more perfectly. After success, I share my experience. Although you can completely reinstall, the following steps may be a more perfect solution.

Buy new domain name and host

Purchase new domain name and host, before relocating, this is necessary, otherwise everything is exempt from talk. And than have to spend a certain amount of time on this, including the choice of new domain name, how to choose a good SEO and beneficial to the user to remember the domain name is not an easy thing, about this online there are many tutorials. Then the host, stability first, speed is also important. Generally speaking, stability and speed of relevance, fast host to prove the strength of the host. After doing this, you should do DNS resolution, to ensure that your new domain name and host can be normal access.

Second, copy all the files to the new host

Use ftp,c863.html ">panel,ssh and so on any method you will use to copy the files under the old domain name to the new domain name, including the Wp-admin,wp-content and Wp-includes folders, and the files under the host root directory. Note that wp-config.php files are also needed.

Three. Export Database

WordPress content export can be divided into three kinds of methods: using WordPress self-contained Tools, plug-in methods and database export. The database can export all the data and settings of WordPress. Includes plug-in settings, theme settings, etc. Export the SQL file to your computer by phpMyAdmin. (For some host restrictions 2M import, you can export the table, some people say that my database of the single table how big how to do? If so, your station is very mature, no need to toss)

Iv. Creating a new database

For WordPress, the use of Php+mysql mode, so you need to first create a database on the new host before you can further operation. Also use phpMyAdmin to create a database, and some hosts can use Chanel.

V. Edit wp-config.php Files

Under the new domain name to find wp-config.php file, check if there is any information related to the old domain name, the recommended method is to download to the computer, and then through the EditPlus software to open find yourolddomain.com and replace it with your yournewdomain.com, so insurance a little , will not be missed. Next, modify the database configuration information in the file, and then save the upload.

Vi. Modify the domain name information in the database

The database will certainly have information related to the old domain name, such as images, articles, home and so on. Use EditPlus to open, find replacements.

VII. Import Database

Log in to your database and import your saved database files.

Check access to new domain names

Now to the new domain name first sign in front, visit the article, visit the page, visit the category, visit the label, see is not in your new domain name. Then log in to the background to see if you can access it normally.

Nine, do 301 redirect

Obviously, we do not want traffic loss, so you have to guide your old domain name to access to the new domain name. There are two ways to achieve: the first is in the old host set 301 orientation, the general host have; the other is to modify the. htaccess file, under the old host root directory, open, delete all data, add the following:

REDIRECT 301/new domain address

So far, the perfect transfer is achieved.

This article is original, the author complete dot gold theme net www.dianjin123.com, welcome reprint, but please keep the link address.

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.