Smart Systems for Home

Plain how-to guides for smart home, security and home Wi-Fi

WordPress.com to WordPress.org: Safe Migration Guide

· 6 min read · Home Tech

In this article
  1. What You'll Need
  2. Step-by-Step
  3. Common Mistakes
  4. Tips
  5. Troubleshooting
  6. Frequently Asked Questions

Moving your site from WordPress.com to WordPress.org gives you full control over your content, themes, and plugins, but it can feel risky if you're not sure where to start. This guide walks you through a safe, step-by-step migration that preserves your posts, pages, images, and settings — without losing data or breaking your site.

What You'll Need

  • Access to your WordPress.com account (admin level).
  • A domain name (you can use a new one or transfer your existing one).
  • A web hosting account that supports PHP and MySQL (most do).
  • An FTP client (like FileZilla) or a file manager in your hosting control panel.
  • A text editor (like Notepad++ or VS Code) for editing files if needed.
  • Patience and a backup of your current site (we'll create one).

Step-by-Step

  1. Export your WordPress.com content. Log in to your WordPress.com dashboard, go to Tools → Export, and choose Export All. This creates an XML file containing your posts, pages, comments, and media URLs. Download it to your computer.
  2. Set up your WordPress.org site. Install WordPress on your hosting account. Most hosts offer a one-click installer (like Softaculous or Fantastico). If not, download WordPress from wordpress.org and upload it via FTP, then run the installation script. You'll get a new admin URL (e.g., yourdomain.com/wp-admin).
  3. Install a fresh theme. In your new WordPress admin, go to Appearance → Themes → Add New. Choose a theme that matches your old site's style, or start with a default theme like Twenty Twenty-Four. Activate it.
  4. Import your content. In your new admin, go to Tools → Import → WordPress. Install the WordPress importer plugin if prompted. Upload the XML file you exported earlier. When asked, assign posts to an existing author or create a new one. Check the box to download and import file attachments (this grabs your images from WordPress.com).
  5. Check your media library. After import, go to Media → Library. If images are missing, you may need to re-upload them manually. The importer usually handles this, but it can fail if the source URLs are blocked. If so, use a plugin like Auto Upload Images to fetch them from the old site.
  6. Recreate your menus and widgets. WordPress.com menus and widgets don't transfer automatically. Go to Appearance → Menus to create your navigation menus. For widgets, go to Appearance → Widgets (or the Customizer) and add them back. This is manual but only takes a few minutes.
  7. Set your permalinks. Go to Settings → Permalinks and choose a structure. To keep your old URLs working, match the WordPress.com default (usually Day and name or Month and name). If you had custom permalinks on WordPress.com, you may need to set up redirects (see Troubleshooting).
  8. Update your site URL. If you're using a new domain, go to Settings → General and update the WordPress Address and Site Address. If you're moving an existing domain, you'll update the nameservers at your registrar to point to your new host (the host provides those details).
  9. Install essential plugins. Add plugins for security (e.g., Wordfence), caching (e.g., W3 Total Cache), and backups (e.g., UpdraftPlus). These aren't strictly required, but they help keep your new site safe and fast.
  10. Test everything. Visit your new site's homepage, a few posts, and your admin dashboard. Check that links work, images load, and forms (if any) function. Use a tool like Broken Link Checker to find dead links.
  11. Set up redirects (if changing domain). If you're moving from yourdomain.wordpress.com to a new domain, create 301 redirects from the old URLs to the new ones. You can do this via a plugin like Redirection, or by adding rules to your .htaccess file. This preserves SEO and prevents 404 errors.
  12. Go live. Once everything is tested, update your domain's DNS to point to your new host. If you're keeping the same domain, just update the nameservers. Wait for DNS to propagate (can take up to 48 hours), then your site is fully live.

Common Mistakes

  • Skipping the export. Don't start until you have a clean XML file. If the export fails, try again or use the WordPress.com export tool's advanced options.
  • Forgetting to import media. The importer often misses images. Check your media library and use a plugin to fetch missing files.
  • Not matching permalinks. If you change the permalink structure, old URLs will break. Match your old structure or set up redirects.
  • Deleting your WordPress.com site too early. Keep it active until your new site is fully working and you've confirmed all content is there.
  • Ignoring DNS propagation. After switching nameservers, some visitors may still see the old site for a day or two. That's normal.

Tips

  • Use a staging site. If your host offers staging, do the migration there first. Test everything before making it live.
  • Backup your new site. Install a backup plugin and schedule regular backups before you go live.
  • Keep your WordPress.com site as a fallback. Don't cancel it until you're 100% sure the new site works.
  • Update your theme and plugins. After migration, run updates to ensure security and compatibility.
  • Use a child theme. If you plan to customize your theme, a child theme prevents changes from being lost on updates.

Troubleshooting

  • Import fails with a memory error. Increase the PHP memory limit in your wp-config.php file by adding define('WP_MEMORY_LIMIT', '256M'); or contact your host.
  • Images don't appear. Re-upload them manually or use the Auto Upload Images plugin. Make sure your new site allows external file downloads (some hosts block them).
  • Old URLs return 404. Set up redirects. If you're on Apache, add rules to .htaccess. On Nginx, edit the server block. Use a plugin like Redirection for simplicity.
  • Login issues after moving. Clear your browser cache and cookies. If you're locked out, use phpMyAdmin to reset your password or deactivate plugins via FTP.
  • Site shows a blank page. This usually means a PHP error. Enable debugging by adding define('WP_DEBUG', true); to wp-config.php and check the error log.

Frequently Asked Questions

Do I lose my WordPress.com site after migrating?

No. Your WordPress.com site stays intact until you delete it. Keep it as a backup until your new site is stable.

Can I keep my domain name?

Yes. You can either transfer the domain to your new host or simply update the nameservers to point to your new hosting. Transferring gives you full control, but it takes a few days.

Will my SEO rankings be affected?

If you set up proper 301 redirects from old URLs to new ones, your rankings should mostly hold. Without redirects, you may lose rankings. Use the Redirection plugin to map old URLs.

Do my email accounts transfer?

No. Email accounts are tied to your hosting or domain provider. If you change hosts, you'll need to recreate email accounts and migrate any existing emails manually.

Can I move from WordPress.org back to WordPress.com?

Yes, but it's more limited. WordPress.com doesn't allow plugins or custom themes on the free plan, so you'd have to simplify your site. The export/import process works the same way.

How long does the migration take?

Most of the process takes 2-4 hours if you're familiar with WordPress. DNS propagation can add up to 48 hours after you switch nameservers.