WordPress Migration steps:
1. Upload new WordPress compression package and decompression, preferably with the same version of the original site WordPress installation package
wordpress-3.2.1 Download
2. Recover. htaccess files
3. Restoring the Database
When exporting: Compress select gzip, file character set to gb2312
When importing: File character set is Utf-8
4. If the domain name changes, update the domain name in the database
The code is as follows |
Copy Code |
Update wp_posts Set GUID = Replace (GUID, ' http://old.domain.com ', ' http://new.domain.com '); Update wp_posts Set pinged = replace (pinged, ' http://old.domain.com ', ' http://new.domain.com '); Update wp_posts Set post_content = replace (post_content, ' http://old.domain.com ', ' http://http://new.domain.com '); Update wp_options Set option_value = replace (Option_value, ' http://old.domain.com ', ' http://new.domain.com '); |
5. Restore uploads, plugins, themes folders in Wp-content
• If fitted with timthumb.php
Need to modify Cahce,temp folder permissions
• If fitted with Cos-html-cache
Create an HTML folder under the root directory and modify permissions
Create Index.bak in the root directory and modify permissions
To see if $path need to be modified in cos-html-cache.php, reference COS-HTML-CAHCE cannot generate static files
6. Restoration of wp-config.php
7. Deactivate and enable Cos-html-cache plugin