DOCS

WordPress domain change

How to change the address of a WordPress site to a new domain or from http to https without losing content.

Updated 05.10.2026. 2 min read

When a site gets a new address, WordPress has to know it in two places: in the settings and in the content (links and images in the database). Before you start, back up the site and the database: Importing and exporting a database.

  1. Add the new domain to the account in cPanel (Domains → Domains) and point it to our server: Point your domain.
  2. Change the address. If you can access the admin: Settings → General, enter the new address in WordPress Address (URL) and Site Address (URL). If you cannot log in, change siteurl and home in the wp_options table in phpMyAdmin.
  3. Replace the old address in the content. In WP Toolkit open Search & Replace and replace the old address with the new one. Do not use a plain "find and replace" in an SQL export because it can break serialized data.
  4. Redirect the old domain to the new one with a 301 redirect (Domains → Redirects) to keep visitors and search engine position.
  5. Check HTTPS on the new domain: SSL certificate and AutoSSL and Forcing HTTPS.
  6. Clear the cache of the caching plugin and the browser.

If the site shows an error after the change#

  • Broken images or styles are usually old addresses: Mixed content.
  • Constant redirects to the old domain: check .htaccess and wp-config.php (WP_HOME, WP_SITEURL).

For a new domain you may also want new email addresses: Create an email address.

Was this article helpful?

Related articles

Still need a hand?

Open a ticket and we will reply by email. The whole team sees your request.