Dreamweaver DedeCMS is one of the domestic CMS systems used by many webmasters. Recently, the official DedeCMS issued a notice stating that commercial users need to purchase a license fee to use it, costing 5,800 yuan/year. Therefore, commercial webmasters are advised to switch to other free and open-source website building systems, such as WordPress, or purchase a commercial license, as copyright enforcement in China has become increasingly strict.
The principle of this method is simple. First, export all the content of the DedeCMS site as an RSS format. Then, use WordPress's import function to import the RSS file, which will automatically copy the previous articles. For specific steps, please refer to the following:
Go to the admin dashboard -> Generate -> Update RSS File. Change the „Maximum Records per Category“ to the total number of articles on the entire site, then click „Start Update“. After the update is complete, a site-wide rss.xml file will be generated in the website root directory, accessible via
. Note: If there are errors in the generated rss.xml file, find the rss.htm file in the plus folder under the templets folder in the root directory, edit it, and locate the code:
CDATA[[field:description function='html2text(@me)'/]]]>
CDATA[[field:description/]]]>
Note: WordPress uses UTF-8 encoding. If DedeCMS is not using UTF-8, please convert the encoding to UTF-8 before importing. How to check specifically: Find the
common.inc.phpfile; the
$cfg_version = 'V57_UTF8_SP2';
$cfg_soft_lang = 'utf-8';
$cfg_soft_public = 'base';
inside will indicate the encoding.
Steps for Importing Dreamweaver RSS- Importing basic data such as Dreamweaver DedeCMS article titles into a WordPress site. Go to the WordPress admin dashboard (WP Admin) -> Tools -> Import -> RSS, and upload the generated site-wide Dreamweaver RSS file for import. The import process may time out; simply re-upload the RSS file, as it will not duplicate imports. Note: By modifying the
rss-import.phpinget_posts function, I achieved importing Dreamweaver article IDs into WordPress simultaneously. For details, please see here:https://github.com/zyfcjtc/dedecms_to_wordpress/blob/main/get_posts.php - Import Dreamweaver CMS article full text to WordPress site. The data of Dreamweaver articles is stored in the body field of the dede_addonarticle database. Now, the content of the body field needs to be transferred to the post_content field of the wp_posts database in the WordPress database. This conversion requires a bridge—that is, the dede_archives data table. Specifically, the content of the body field in dede_addonarticle is first transferred to dede_archives, and then from dede_archives to the post_content field in wp_posts. The matching points for these two conversions are the article ID in Dreamweaver and the article title already imported in WordPress (which is the same as the article title in Dreamweaver). The specific steps are as follows: Enter phpMyAdmin, select the database used by the DedeCMS website, and execute the following SQL statement in the SQL input box to add a body field to the dede_archives table in the Dreamweaver database.
ALTER TABLE dede_archives ADD body longtext NOT NULL
Then, execute the following SQL statement to import the content of the body field from the dede_addonarticle data table into the body field of dede_archives. The statement uses the aid from dede_addonarticle and the id from dede_archives as matching points.UPDATE dede_archives,dede_addonarticle
SET dede_archives.body = dede_addonarticle.body
WHERE dede_archives.id = dede_addonarticle.aid
Next, use the export function in phpMyAdmin to export the dede_archives data table, and then use the import function to import this data table into the database used by the WordPress website, ensuring it is in the same database as the wp_posts database. Then, use the SQL statement again to import the body field from dede_archives into the post_content field of wp_posts.Using the article title as the matching point (provided that all article titles are unique).Using the ID as the matching point.UPDATE wp_posts,dede_archives
SET wp_posts.post_content = dede_archives.body
WHERE wp_posts.id = dede_archives.id
At this point, the conversion of the article content is complete!
Method 2 for Converting DedeCMS to WordPress: Database Conversion
The general idea is to import the database content of DedeCMS into WordPress and use some database commands to transform the original DedeCMS database into a WordPress-compatible one. However, tutorials for this method online are relatively old and not recommended for experimentation.
Method 3 for Converting DedeCMS to WordPress: Copying or Crawling
This method is relatively recommended by Naiba for everyone to operate because it is the safest. However, if the original website has a large amount of data, the operation can be very time-consuming.
Specific steps:- First, set up a temporary WordPress website. For a tutorial, refer to:WordPress installation tutorial。
- In the WordPress Admin Dashboard, under Posts and Categories, set up the categories from the original website (DEDECMS).
- Manually copy articles one by one or use scraping software (there are shops on Taobao that help write scraping rules) to scrape all the articles.
- Use builders like Elementor to design the homepage effect of the website.
- Switch the domain to the original DedeCMS website's domain.
- Set up pseudo-static and 301 redirect rules to allow old website URLs to redirect to new URLs, minimizing SEO impact.
Method 4 for Converting DedeCMS to WordPress: PHP Migration Script
This method is a PHP script shared by I Love Shuizhuyu, requiring SSH access to your own server. The specific method is as follows:
1. Download the PHP script file. Download Link 2. Open the script file and edit the content shown in the image below. 
The data configuration parameters for DEDECMS can be obtained from the data/common.inc.php file in DEDECMS.
3. Upload the modified PHP file to the root directory of a freshly installed WordPress website. 4. Use SSH commands to run it.php dedecms_to_wordpress.phpTo use SSH, you must have your own server or VPS. Shared Hosting does not provide SSH access. If you do not have a VPS, refer to:
Recommendations for stable, reliable, and cost-effective VPS.If you have a VPS but do not know how to use SSH, refer to:
Tutorial on connecting to a VPS using Xshell 6: How to log into a VPS from a computer.After running, simply wait for it to execute automatically.
Precautions After Converting Dreamweaver (DedeCMS) to WordPress
1. Pay attention to setting up pseudo-static and 301 redirects.Although both Dreamweaver and WordPress are PHP programs, their pseudo-static rules are different. Therefore, after migrating from DedeCMS to WordPress, the article page links from the old DedeCMS website will show errors when opened. This requires setting up 301 redirect rules to redirect old DedeCMS article links to the new WordPress website links. For WordPress, plugins like Redirection can also be used to help with 301 redirects.
Redirection
2. The website pages need to be redesigned.Regardless of which method you use to migrate DEDECMS to WordPress, the website's page design will change. Therefore, after all the website articles are copied over, you also need to design the website pages from scratch. For beginners, it is recommended to use
Elementor Builderfor operation, or directly pay someone to design it for you, which is a more reliable method.
Tutorial for Converting DedeCMS to Xunrui CMS
Xunrui CMS is also a domestic CMS system. The official website states that it is released under the MIT open-source license, free and without restrictions on commercial use. Therefore, webmasters who are not accustomed to WordPress can also consider it.
The Xunrui CMS framework is released under the MIT open-source license, free and without restrictions on commercial use. It is a free and open-source product that allows developers to freely modify copyright information in both the frontend and backend interfaces, including use, copying, modification, merging, publication, distribution, re-licensing, or sale.
1. Go to the official Xunrui CMS website to download the source code and install it on the web server.
Xunrui CMS Download Address2. Install the Dreamweaver DEDECMS data conversion extension in the backend.

3. Fill in the database information of the Dreamweaver website and proceed with the conversion.

After successfully identifying the database, follow the steps. Once the conversion is complete, redesign the homepage and other pages, then publish.