A few simple steps to teach you the perfect transplant WordPress to the server

Source: Internet
Author: User

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

Into today's topic, we first upload all the local files to the server space root directory, and then the book can be installed in addition to wp-config.php. If your space is already bound to the domain name, you can access your domain name directly. Once installed, we need to import articles locally.

One: Select tools in local Web site Admin-> Export will see the Export page. We check all the content and click to download the export file, at which point you will download a file suffix XML.

Second: Landing server site background, the default is the first time is missing upload XML episode, so we need to install Wordpress-importer, in the background plug-in search to the plugin after the installation is completed, into the tool-> import page, Choose wordpress Click to enter the Import page.

Click to browse to select the XML file that you just exported locally, and then there will be a lot of success and failure of the page, this does not matter, basically all your pages and column articles will be the correct import.

Three: To this one basically can be restored, but this is only a beginning, there are other steps. The use of this approach is also a bit flawed, that is, which default welcome article and the default page are still there, we move a small manual in addition to it. But when you import, you will find your article inside the hyperlink and picture address or stay on the 127.0.0.1, if your space has been bound to the domain name for which is very display this article hyperlink is wrong. Where we need to modify the database, enter your purchase space database, insert a section of SQL statement can change quite simple.

UPDATE wp_posts SET post_content = replace (post_content, ' aa.com, ' http://www.admindiv.com/');

UPDATE wp_comments SET comment_content = replace (comment_content, ' aaa.com ', ' bbb.com ');

UPDATE wp_comments SET comment_author_url = replace (Comment_author_url, ' aaa.com ', ' bbb.com ');

Then click Execute and if there are no errors, all the addresses in the articles and comments will be replaced. Where aaa.com for your local test when the link domain name address is 127.0.0.1, and bbb.com for you now use the domain name, this do-it-yourself modification.

At this time with a new address to visit it, the domain name perfect for replacement. This method can also play a way to change the new domain name in the future, only in the background settings before the modification, modify your blog address to make changes to the database statements.

This article by doing the home original website, reprint please specify address: http://www.admindiv.com/respect Copyright, reprint please specify

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.