Last update at :2024-01-25,Edit by888u
A few days ago, in the article "DedeCMS starts to charge 5,800 yuan for commercial authorization, it is recommended to switch to WordPress" on our blog, we just mentioned that DedeCMS charges for commercial authorization and it is recommended to switch to WordPress. Today, the WPJAM plug-in developer launched it The script command line is used to automatically migrate DEDECMS to WordPress. Our blog has experienced it and it is really convenient!
1. About one-click migration migration script
With a PHP command line script, you can easily migrate the dedecms database content to WordPress. You are required to have server SSH management rights. The virtual host does not support SSH because it cannot run.
One-click migration can quickly and smoothly complete the import work in one go. If you use a virtual host, it cannot be operated. Lao Wei recommends switching to a cloud server. For convenience, switch to Alibaba Cloud or Tencent Cloud Server in mainland China. Either way.
The imported script is free. If you need a cloud server, you can purchase it from the promotion page below.
Mainland China chooses Alibaba Cloud when building a website https://www.aliyun.com/minisite/goodsTencent Cloud https://cloud.tencent.com/act/pro/lighthouse_newFor overseas websites, choose siteground virtual host https://www .ucloud.cn/site/active/kuaijie.html
2. Deploy the Pagoda panel and install a new WordPress website
The following are the specific steps to migrate DEDECMS to WordPress with one click.
First deploy the Pagoda Linux panel on the purchased cloud server. If you don’t know how to deploy it, please read the tutorial on our blog site:
Deploy the WordPress website with one click in the Pagoda panel (it will be blank and contentless after installation by default). It is not recommended to import into WordPress that already has data. Although there is a judgment in the command line script, unexpected errors may occur and the conversion fails. .
3. Execute DEDECMS to import the WordPress script
DEDECMS one-click import WordPress script download address:
Address https://wws.lanzoui.com/i1LKAunn8pe; password 89ma
Open the dedecms_to_wordpress.php file downloaded above, find and modify the database parameters of DEDECMS:
// DEDECMS database configuration, modify it to your own $cfg_dbhost = 'localhost'; $cfg_dbname = 'dd'; $cfg_dbuser = 'root'; $cfg_dbpwd = 'root'; $cfg_dbprefix = 'dd_';$ cfg_db_language = 'gbk';$cfg_db_port = 3306;
Change the above database name, account number, and password to your own. Can be found in data/common.inc.php of DEDECMS.
If the DEMDECMS database and the WordPress database are not on the same host, export the DEDECMS database and import it to the server where WordPress' MySQL is located.
4. Run DEDECMS import WordPress script with one click
Upload the modified dedecms_to_wordpress.php file to the newly installed WordPress directory, and then execute the following command on the SSH client or the ssh command line page of the Pagoda panel:
php dedecms_to_wordpress.php
Then wait for the script to automatically complete the migration.
5. Actual import speed test
After testing, it was found that the migration time for the DEDECMS database with more than 40,000 articles was less than 2 minutes; and the conversion of 140,000 articles could be completed in about 7 minutes.
The import script can keep the previous and later article IDs unchanged, and the article URLs will also remain unchanged after migration. The search engine will not be unable to open the page, nor will it lose customers. From the perspective of SEO optimization, it is the best.
6. Fixed links, pseudo-static
After the conversion is completed, you need to set fixed links and pseudo-static in WordPress so that the converted articles can be opened normally.
Finally, thanks to wpjam plug-in developer Denis and many developers for their continuous late-night efforts, dedecms webmaster can use the one-click conversion script for free.
Recommended site searches: PHP space rental server website, domain name query, Ministry of Industry and Information Technology ICP registration number, Shandong website registration, Korean cn2 server, domain name registration, Chinese domain name registration, which Hong Kong server is fast, American server website,
发表评论