Skip to content
Docs

Move your site to a new domain or host

Moving a WordPress site means copying its files and database, then replacing the old address with the new one everywhere in the database.

The simplest way is a migration plugin such as Duplicator, All-in-One WP Migration or Migrate Guru. They copy files and database and replace the URLs for you. Many hosts also offer free migrations.

  1. Copy the files. Download the whole site folder by FTP or SFTP, or at least wp-content/ and wp-config.php.

  2. Export the database from phpMyAdmin or with wp db export.

  3. Upload the files to the new server and import the database into a new, empty database.

  4. Update wp-config.php with the new database name, user and password.

  5. Replace the old URL in the database. Do not edit the SQL file by hand: theme options and widgets are stored as serialized data and break if text lengths change. Use WP-CLI or a plugin such as Better Search Replace:

    Terminal window
    wp search-replace 'https://old-domain.com' 'https://new-domain.com' --all-tables
  • Go to Settings > Permalinks and click Save Changes.
  • KLEO: open Theme options and click Save Changes to rebuild the theme’s CSS file for the new address.
  • KLEO, Typer, SeeKo: open the theme panel and register the theme (KLEO · Typer · SeeKo · SweetDate · BuddyApp) again if it shows as not registered.
  • Envato Market: your token keeps working on the new domain.
  • Clear all caches, including the CDN.
  • Check images, the logo, the menus, a member profile, a group and the checkout.

The same steps apply when you publish a site built on a staging copy. Remember that one license covers the site, including its staging copy (licensing). Turn off Settings > Reading > Discourage search engines on the live site if it was on during staging.