Z-blog transfer to wordpress tutorial

Source: Internet
Author: User
Tags movable type

Many of my friends just built a blog is the use of domestic excellent Blog system: Z-BLOG, with a period of time after many people want to move to wordpress, a variety of transfer reasons. The main reason for learning friends is Z-BLOG official For A Long Time does not maintain and upgrade the blog. We all know that an open-source system that is free for others will become more and more viruses and vulnerabilities over time. If official maintenance is lost, the system will be eliminated.

I have also found many transfer cases and materials on the Internet. Finally, I found some conclusions and started the transfer. The transfer process was not as easy as I thought. I encountered many problems, especially the URL address invalidation and title problems after the transfer system, this is a huge blow to SEO.

 Transfer preparation:

Before the transfer, the full site data backup is recommended. It is best not to transfer the data in the current space. It is best to purchase a new space, and the data copy is transferred in the past. This means that the transfer failure does not affect the normal access to the website or the failure of the transfer can be tested multiple times to achieve the best effect. It seems that the transfer time of the website only takes effect in 10 minutes after the domain name is re-resolved.

Note: purchase a linux host.

Z-BLOG system export all data:

Download Plugin: Z-BLOG transfer perfectly to wp-movabletype transfer Tool

Z-BLOG installation plugin

Enter the plug-in management of the backend of zblog--import zpifile -- (movabletype.zip) -- submit, and enable the plug-in after the installation is complete.



Go to plug-in management-Click Manage on the right of the movabletype plug-in to export the content ,:



Here, Li xuepeng will focus on data export.

The topic page format is as follows: http: // www. ***. net/seo/

The internal page format is as follows: http: // www. ***. net/post/123.html

The root style of the topic page can be easily set in the background of the WP program, but it is more difficult to match the internal page format one by one. For example, when the Z-BLOG http: // www. ***. net/post/123.html address after the transfer to change the article whether or not this address. The root form of the previous Z-BLOG period pages is:

Http: // www. ***. net/post/id.html, the ID is the document number automatically generated by the database background (continuous, but if the article is released halfway and deleted, the ID will not be automatically reduced, if a deleted article is encountered, the ID number will be blank. If you export all the files directly using tools, it will be continuous, and it will be obviously misplaced after being imported to WP) on the data export page, I checked the IDs of all the previous data files and found several gaps. The specific continuous article is shown in:



Then I can only export data in batches. The specific export file is as follows:



You can export tags, comments, and content as needed. Click Submit to save the file, as shown in. As long as no error is reported during export, it will be okay.

 Import data to WordPress:

Before importing data, set a fixed link to WP:

Since the content page address of my friend is http: // www. ***. net/post/id.html, now I only need to set it like this,



Note: Please purchase a linux host. If it is a Windows host, the WP system will automatically add the topic name category in front of the address, which is a bit difficult to optimize the current situation. Unless you change this feature of WP. For example: www. ****. net/category/post/123.html. Install the plug-in to remove category. The plug-in name is "WP No Category Base-WPML compatible"

Go to the WordPress background -- tools -- import -- Movable Type and TypePad -- select the generated "*. asp" and Click Upload File and import ,.

Note: The maximum size of the file is 20 MB (depending on the space limit, the size is different). If there are too many Zblog articles, the generated file is too large, so we can divide it into multiple operations (note the gap in the above disconnection in batches). For example, there are a total of 100 articles with a total size of 30 mb, so we can divide it into the first 50 articles, the last 50 documents are generated. Control the volume within 15 MB and upload it to WordPress.



Note: before importing data, ensure that the automatic increment of the article table is reached. If the newly installed wp program has published an article, its automatic incremental ID number is no longer from 1. All the data imported above will be misplaced. How can I view it? Install the Navicat for MySQL database client locally (Baidu can find the cracked version) or directly use the online database viewing program provided by the Space Provider. View the wp_posts table in the WP new database.


VcmRwcmVzc7XEse0 = "height =" 297 "src =" http://www.bkjia.com/uploads/allimg/131122/040614HA-6.jpg "width =" 588 "/>


If the "auto increment value is not 0, you need to clear the automatic increment value of this table" to clear the SQL syntax for the automatic increment value of MYSQL database. The black part is your database name. After writing it, select execute.



 Actual Operation:

The above are the technical operations in the entire transfer process. Now let's work with xuepeng. In addition, the automatic increment of the WP database Article table starts from 2. That is to say, the system numbered 1 occupies. Then our article will be imported from 2.

Let's first look at the continuous degree of peer blogs:



We can see that the system numbered 1 is retained, 2-5 is continuous, 7-18 is continuous, 20-30 is continuous, and 32-37 is continuous. Let's take the previous several examples to explain, the subsequent steps are the same as those described above. Specifically, we can draw from the following results: If the ID is 1 and the reserved ID is 6, there is no ID of 19 and there is no ID of 31.

Step: import the exported file to WP. First import 2-5.asp file, we test, all articles correspond to the address of the previous Z-BLOG one by one, and there is no dislocation. If there is a dislocation, you need to clear the automatic increment of the MYSQL database table again. The cleanup method has been mentioned above. Then analyze the cause and try again.

Note: Do not click post after wordpress is installed. The reason is that WP automatically saves the draft and occupies your ID number.

If the above 2-5 data is imported successfully and the URLs are matched one by one, then we will explain how the ID 6 is occupied. As mentioned above, WP has the function of automatically saving drafts. It will automatically occupy the ID number. If you want to use the number with ID 6 when publishing an article, it will be wrong, this is because the WP program automatically saves the draft every time you publish this article. If you write this article for a long time, it may be if it is not only occupied by ID 6, 9 and so on. Therefore, you cannot use the WP publishing system to publish articles. Unless you disable the automatically save draft function of WP .. Then you can only export a POST file from the original Z-BLOG system, and then import it on the WP, so that the perfect position of ID is 6.

We will continue to import 7-18.asp. After the import is complete, we will see whether it is one-to-one correspondence with the previous URL, and then import an article to continue to import 20-30.asp, and so on, after each import is complete, you must immediately check whether there is a one-to-one correspondence and find the cause. If there is no corresponding, the automatic database increment will be cleared.

Conclusion: The above is the Z-BLOG perfect import wordpress URL of the whole process, if you still do not understand can contact learning friends. You do not need to do a lot of 301, and you do not need to monitor whether there is a problem with the URL of each page. It is so easy to implement one-to-one matching of URLs in another program. The next article describes the use of the plug-in all in one seo and other useful WP plug-ins, as well as the conflicts between the plug-in and the current template (Xiao Han template.

This article first red black alliance, from: http://www.xp178.net/post/1589.html do not understand can contact learning friends, push a technical explanation 9 groups 122567971 welcome you to join

Related Article

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.