Dedecms began to authorize the business of personal websites. Those without authorization will be prosecuted. It is said that evidence collection has been completed through AI. In this case, one report will be final. So let's use the open source and free WordPress.
How to import WordPress with one click? Let me introduce how to migrate DEDECMS to WordPress with one click in detail:
1. To install a blank and brand new WordPress, first install the blank and brand new WordPress, and do not try to import in the existing WordPress. Although our program has made judgments, unpredictable problems may always occur, so first ensure that the import operation is carried out in the blank and brand new WordPress.
2. Download the DEDECMS import WordPress script script, which will be placed at the end of the article. Open the downloaded dedecmstowordpress.php file, and modify the database configuration parameters of DEDECMS:
Data configuration parameters of DEDECMS can be obtained from data/common.inc.php of DEDECMS.
If the DEMDECMS database and the WordPress database are not in the same service and cannot be connected remotely, you need to export the database from the original DEDECMS server and then import it to the MySQL server of WordPress.
3. Execute the DEDECMS import WordPress script
Upload the newly modified dedecmstowordpress.php file to the newly installed WordPress directory, and then execute the following command on the SSH command line: php dedecmstowordpress.php
Then wait for the migration to complete. After our actual test, the migration of the DEDECMS database for more than 40000 articles took less than 1 and a half minutes. Another test, nearly 140000 articles, also took more than 7 minutes to complete.
Finally, we share an egg: we import the script to keep the ID of the article unchanged, so that the URL of the article will remain unchanged after the migration.