Choose this option to move your website to a new server but keep the same domain.
How to prepare
Here’s what to do beforehand on the destination:
- Make sure you have a database created and prepare database details in advance. For help with creating the database or obtaining the database details, contact your hosting provider.
- Prepare your FTP credentials and test the FTP path. You can contact your hosting provider if you need additional assistance.
- Make sure the temporary URL or IP address is publicly reachable.
Steps for the migration
- In your dashboard, go to the website you want to migrate.
- On the left sidebar, click Backups.
- By default, the most recent backup is used for cloning. To use a different backup, select a backup date from the calendar. If multiple backups exist for that day, select the one you want to clone.
- You can also create a new backup and use it for cloning by select the corresponding checkbox in the next step.
- In the Overview tab, click Clone website.
- Under Choose destination type, click Same domain on a new server.
- Under Enter destination URL, enter a temporary URL or an IP address (must be publicly reachable), then click Test URL.
- After the successful test, an Enter Connection Information section appears. Fill in the FTP and database details for the destination website.
- If you previously saved the credentials for this destination, click Choose from list to autofill.
- Click Test Credentials.
- To save successfully tested credentials for future use, click Save connection info.
- (Optional) Click Create new admin to add a new admin user on the destination website.
- (Optional) Click Change prefix to change a database prefix. If left blank, the source prefix will be used.
- (Optional) Click Search engine visibility to adjust this setting on the destination website.
- Click Clone.
Check the destination website
After migration, the source URL remains unchanged in the destination database. As a result, when you visit the destination website using the temporary URL or IP address after the migration, it will redirect to the source website.
To preview the migrated website on a destination using a temporary URL (or IP address):
- Edit the wp-config.php file on the destination server.
- Add the following lines above the line that says
/* That's all, stop editing!
Happy blogging.
*/
define( 'WP_HOME', 'http://temporarydomain.com' );
define( 'WP_SITEURL', 'http://temporarydomain.com' );
- Replace
http://temporarydomain.com
with your actual temporary URL (or IP address)
- After testing, remove this code from your wp-config.php file.
Alternative options:
- Update the domain’s DNS to the new server.
- Edit your computer’s hosts file to point the domain to the new location.