How to Manually Change the Domain of Your WordPress Site

June 16, 2025 / Domain and DNS

This guide will walk you through the steps to manually change the domain of your WordPress site.
If you want to duplicate your WordPress site and use it on a new domain, follow these steps. This is useful when promoting the same content under different domain names.

Important: Make a full backup of your site from cPanel before starting.

Follow the steps:

Copy Website Files

  1. Go to cPanel > File Manager > public_html.
    file manager
  2. Select all files except .qidb, cgi-bin, and any addon domain folders.
    public_html
  3. Copy and paste them into your new addon domain folder (e.g., /public_html/newdomain.com).

Create a New Database

  1. Open cPanel > Database Wizard.
    database wizard
  2. Create a new database, user, and assign full privileges.
    database wizard

Update “wp-config.php”

  1. Go to the addon domain folder in File Manager.
  2. Edit wp-config.php and update:
    1.  DB_NAME
    2. DB_USER
    3. DB_PASSWORD

Export and Import the Database

  1. Export the original site’s database using phpMyAdmin.
  2. Import it into the new database you created.

Update the Database for New Domain

  1. In phpMyAdmin, go to the new database.
  2. Open the “wp_options” table.
  3. Update the siteurl and home with the new domain.
  4. Edit other details like blog name, description, and user login if needed.

Done!
You have successfully duplicated and moved your WordPress site to a new domain. If you want extra help, connect with our support specialists.

Making major site changes? Learn How to manually back up a MySQL database in cPanel

Spread the love