Typecho migration to WordPress notes
Preparation Typecho data export plug-in Byetyp https://github.com/sunxiyuan/ByeTyp Pack and backup the data of /usr/uploads in Typecho Back up statistics code and ADsense code steps Note: Because this note was written after the migration was completed, there are no screenshots. The following content only contains text steps. text steps Upload the Byetyp plug-in to the plug-in directory (Plug) in the Typecho blog, and remove the version number and modify the directory name (otherwise it cannot be activated normally) Pack and download the files uploaded by the /usr/uploads user in Typecho and backup them locally. They will be uploaded to the wp-content/uploads directory of WordPress later. Activate the Byetyp plug-in to export the data of the Typecho blog in the format xml Install WordPress and import the data in Typecho Execute the database command to replace the attachment path (picture path) in the post-content table with Wordpress SQL command UPDATE wp_posts SET post_content = REPLACE( post_content, '/usr/uploads/', '/wp-content/uploads/');Note: wp_posts is the WordPress table name. Please choose it according to your actual situation. ...