# Move your site to a new domain or host

> Move a site built with a SeventhQueen theme to a new domain, host or from staging to live, without broken links or lost settings.

Source: https://seventhqueen.com/docs/common/move-your-site/

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

## Use a migration plugin

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.

## Move it by hand

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:

   ```bash
   wp search-replace 'https://old-domain.com' 'https://new-domain.com' --all-tables
   ```

## After the move

- 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](https://seventhqueen.com/docs/kleo/register-your-theme/), [Typer](https://seventhqueen.com/docs/typer/register-your-theme/), [SeeKo](https://seventhqueen.com/docs/seeko/register-your-theme/), [SweetDate](https://seventhqueen.com/docs/sweetdate/register-your-theme/), [BuddyApp](https://seventhqueen.com/docs/buddyapp/register-your-theme/)) 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.

## Staging to live

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](https://seventhqueen.com/docs/common/licensing/)). Turn off **Settings > Reading > Discourage search engines** on the live site if it was on during staging.
