Quick search
Search

Transferring WordPress to Another Domain

The domain specified by the user during the WordPress installation is recorded in the settings and is subsequently used when working on and adding new content to the site, thus creating more and more entries in the database with the domain name. As a result, when transferring the site to a new domain, all links on the site point to the old domain.
To resolve this issue, log in to "phpMyAdmin" in your control panel and click on the name of your site's database in the sidebar:

Go to the "Export" tab:

Click the "Next" button and wait for the download of the *.sql file to complete:

The downloaded file needs to be opened in a text editor. We recommend using the program "Notepad++" for this purpose.
You can download "Notepad++" from the following address: https://notepad-plus-plus.org/downloads/

In "Notepad++," press the CTRL+F key combination, and in the window that appears, go to the "Replace" tab:

In the "Find" field, you need to enter the name of your site's current domain, and in the "Replace with" field, enter the new domain name. After that, click the "Replace All" button:

Once you're done, close the "Replace" window and save your changes by clicking the "Save" icon or pressing CTRL+S:

Return to "phpMyAdmin" and go to the "Structure" tab:

We need to clear the database in order to upload new data. To do this, scroll to the bottom of the page, click on "Check All," and select "Delete" from the dropdown menu:

Confirm deletion:

Next, go to the "Import" tab:

Upload the edited *.sql file by clicking the "Choose File" button, then click the "Next" button:

Wait for the import to complete; this may take some time:

Check the functionality of your website.