GuidePremium
Migrate to CoullWorks Blog from another blog or WordPress
Import posts, categories, tags, authors and comments from Magefan, Mageplaza, Aheadworks, Mirasvit or WordPress, with a dry run and a 301 for every old address.
Updated 16 November 2026Back to the package pageBuy
The importer moves your content without losing it or your rankings. Use Content, CoullWorks Blog, Import in the admin, or the command line.
The three steps#
- Run the dry run. It reads the whole source and writes only the job and its log. It reports counts, URL key conflicts, blocks it could not convert and missing media. Nothing is written to your content.
- Disable the old module, then import. While the old blog module is enabled, its router can answer old addresses before Magento's rewrites do. Take a database backup before a live run.
- Check the redirect report. It lists redirects created, already there, skipped (the page was not imported) and in conflict, per page type.
Commands#
bin/magento coullworks:blog:import magefan --dry-run
bin/magento coullworks:blog:import magefan [--dry-run] [--store=code] [--old-base-url=https://shop.example.com/blog]
bin/magento coullworks:blog:import mageplaza [--dry-run] [--store=code] [--old-base-url=...]
bin/magento coullworks:blog:import aheadworks [--dry-run] [--store=code] [--old-base-url=...]
bin/magento coullworks:blog:import mirasvit [--dry-run] [--store=code] [--old-base-url=...]
bin/magento coullworks:blog:import wordpress --file=export.xml [--dry-run] [--include-pages] [--store=code] \
[--author-map=wp_login:author_url_key,...] [--old-base-url=https://old.example.com/blog] \
[--category-base=category] [--tag-base=tag]Exit codes: 0 done, 1 done with errors (the log names every record that failed), 2 refused (nothing was written).
Jobs started in the admin are queued and run by cron, one at a time.
Sources#
| Source | What comes across |
|---|---|
| Magefan | Posts, categories, tags, authors, comments and media, read from the same database. Old addresses are built from Magefan's own permalink settings |
| Mageplaza | Topics become tags. Comments keep their threads and status. Related products come across. Verified against 4.3.5 |
| Aheadworks | One author is made for each distinct name. It keeps no comments of its own (it uses Disqus). Verified against 2.3.2 |
| Mirasvit | Authors are the admin users that wrote posts. It keeps no comments of its own (it uses Disqus). Verified against Blog MX 1.0.43 |
| WordPress | An export file (WXR). Gutenberg blocks become Page Builder content types. Images are downloaded only from the export's own site |
A version whose tables or settings differ from the verified ones is refused with a message that names the table, column or attribute. The importer never guesses a schema.
For WordPress, export with Tools, Export, All content, and pass the file. It is streamed, so very large files are fine from the command line (an upload in the admin is limited by your PHP upload size). Images are capped by the Import settings (default 20 MB and 20 seconds each).
Redirects#
Every old address gets a 301.
| Old address | Becomes |
|---|---|
| Posts | 301 to the new page |
| Categories | 301 to the new page |
| Tags | 301 to the new page |
| Authors | 301 to the new page |
| The RSS feed | 301 to the new feed |
| Listing pages 2 to N | 301 to the new page |
If the old site was on this store's domain, the rewrites are created. If it was on another domain, you get a redirect map as a CSV to load into the old site. WordPress old addresses come from the export's own base URL; pass --category-base and --tag-base if the old site used other bases.
Running it again#
A second run updates what it imported before and creates no duplicates, so an interrupted run can simply be run again. Scripts, event handlers and javascript: URLs are removed from imported HTML, and the removal is logged.







