Please, enter a valid email!
00 days
00 hours
00 minutes
00 seconds

How to Safely Move Your WordPress Website to a New Server or Domain

If you’ve used WordPress before, you have probably quickly figured out that there’s no built-in way of moving or migrating a website to a new server or domain. In fact, many web designers and developers simply try to move the files and database over to a new server and think it will magically work, but you’ll most likely be greeted by Internal Server Errors due to a misconfigured .htaccess file or mysterious redirects to your old domain or website.

The solution to this problem will vary depending on whether you’re moving to a new server but keeping the same domain name, or if you’re moving to a completely new domain as well.

Moving to a New Server

If you just need to move your website to a new server while keeping the same domain name, then the process is fairly simple. You will first need to copy the database, and then move over the files with a file manager or FTP.

  1. Export the Database

First we need to copy the database. The easiest way to do this is to login to your cPanel account and click on phpMyAdmin. That will take you to phpMyAdmin, which is the database management tool.

Next, select your database from the list of databases in the left sidebar and then click on the Export tab at the top of the page.

The options to select are as follows:

  • Export Method: Custom
  • Table(s): Select All
  • Output: Save output to a file
  • Output Compression: gzipped

transfer wordpress site to new domain

Then click the Go button at the bottom of the page, and your database download should start any second.

  1. Import the Database

Next we need to take the database we just exported and import it into our new web host server. To do this, start by logging into the new cPanel account and creating a new database using the MySQL Database Wizard tool.

Write down the database name, username and password as you will need it later in order for your WordPress website to connect to it.

Then we’ll proceed by going into phpMyAdmin again (this time on our new server). You will select the database from the left sidebar again, and then click on the Import tab at the top instead.

The next step is pretty straightforward, you just need to browse your computer for that database file we exported, and then click the Go button.

After a few seconds, you should get a confirmation that your database has been successfully imported.

transfer wordpress site to new domain

  1. Move Files with FTP

Now that the database has been successfully moved over, we need to do the same for files. There’s many ways of moving files from one server to another including file manager, FTP, SSH, and so on. For our sake, we’ll use the FTP method since it’s a fairly standard way of uploading and download files between a computer and the server.

The best way of doing this is to create a new folder on your desktop, then login to your old web server via FTP using your favorite FTP client such as Filezilla (for Windows) or Transmit (for mac).

Then go into your public_html folder and simply select all files and folders and download them into the folder you created on your desktop.

Once the files have been downloaded, log out of that FTP connection and login to your new server’s FTP. Then you will go into public_html folder again, and this time, upload all the files from the folder on your desktop.

  1. Change WordPress Database Credentials

Once the files have been uploaded, you only have one last step to do and that is to change the database credentials.

So open the file wp-config.php and change the 3 values: DB_NAME, DB_USER, and DB_PASSWORD. Once you change those and save the file, go to your domain to verify that it is all working fine.

how to migrate a wordpress site to a new server

Note: If you have not yet changed the DNS settings on your domain to point to the new server, you will want to do that right now.

Moving to a New Domain Name

The process of moving to a new domain name is a bit trickier because WordPress database has many instances where the domain name is stored. Without changing all those records, the migrated WordPress website simply would not work as desired.

There’s two ways to copy the website over: using a backup/migration plugin or manual migration similar to the one mentioned earlier in this article.

Using a Backup or Migration Plugin

The quickest and safest way to migrate a website to a new domain is to use a plugin. The two best ones I’ve used include Duplicator and BackupBuddy. For the purpose of this demonstration and because my BackupBuddy license has expired and I only have an old out-dated version, I will use Duplicator, which is free.

  1. Install Duplicator Plugin

The first step is to install the Duplicator plugin from the WordPress repository.

  1. Create a “Package”

Go to your WordPress admin section and in the left navigation bar, click on Duplicator.

On the Duplicator Packages page, click on Create New button. This is where you will select all options such as excluding certain database tables or files from being included in the backup.

how to migrate a wordpress site to a new server

  1. Build the Package

Once you have selected all the options, proceed to building the package. This will output the database and zip up all the files.

Once the package is built, you will be given the option to download both the Installer and the Archive file. Download both of them as we will need them in order to restore the website on the new server.

how to migrate a wordpress site to a new server

  1. Restore the Package

The final step is restoring the package on the new server. We will do that by first uploading both Installer and the Archive file into the root of our new web host. If you want to move the website into a folder instead, this is the time to do it.

Once the two files have been uploaded, the next step is to go to your website URL and access installer.php. (For example:

how to migrate a wordpress site to a new server

If you have not already done so, you will need to create a new database or at least have the database user’s username and password ready so that the installer can create the database automatically for you.

Follow the steps in the Installer to restore your website. Once it is complete, you should thoroughly test your website and make sure everything is as it should be.

Manual Migration

The manual migration will be identical to the “Moving to a New Server” part we went over earlier, except after we export the database, we will need to do a Find and Replace for the old domain.

Running Find and Replace on the Database

To avoid any serialization issues, we will run the Database Search and Replace Script in PHP. To start, simply go to that website and download the script.

Once you have it downloaded, you will upload it to the same location where you uploaded the new website.

Then we are ready to run this script by going to it in the browser, such as When you get there, you will be greeted with a page similar to the one shown below.


If it was able to successfully find your wp-config.php file, then it most likely auto populated the database name, username, and password fields. If it has not, then you will need to manually enter those.

In addition, you will also type your old domain in the replace field and old domain in the with field.

When you’re ready, click on the dry run button which will first do a test run. If everything looks good and there aren’t any errors, then you can proceed with a live run. This will make permanent changes to your database.

Once it has run successfully, you are ready to look over your website to make sure everything is correct. If everything went as planned, you should be ready to use your website on your new domain right now.


As you can see, there are many ways of moving a WordPress website from one server to another, even if you have to change the domain name. Although there are many ways of doing it, usually it is not well documented and new developers or web designers often run into problems with WordPress migrations. That is exactly the audience for which this guide was written.

So what is your favorite method of moving a WordPress website? Is it included in this article? Let us know about it in the comments.


Haris studied web design and development in college, starting his own web design firm serving clients in St. Louis. While this was a great success, he sought new challenges. He joined Adficient as the head of web development and SEO, and immediately made a name for himself for his creativity and ability to develop beautiful websites from scratch. When not designing, Haris loves traveling and meeting new people.

Get more to your email

Subscribe to our newsletter and access exclusive content and offers available only to MonsterPost subscribers.

From was successfully send!
Server error. Please, try again later.

138 responses to “How to Safely Move Your WordPress Website to a New Server or Domain”

  1. sbo says:

    … [Trackback]

    […] Read More here on that Topic: […]

  2. nub says:

    Die Einfachheit, die hinter Wild Falls steckt, wird dich ganz sicher begeistern. Lediglich den Rundeneinsatz musst du festlegen. Mehr ist nicht notwendig, um deine ersten Drehs zu machen. Wenn die Truhen den Wasserfall hinab stГјrzen, dann geht es nicht nur um unbegrenzt viele Wild Falls Freispiele, sondern auch um sagenhafte Auszahlungen bis hin zum 10.000-fachen Einsatz! Roulette, Black Jack, Poker, Mystery Jackpots oder Spielautomaten mit beliebten und neuen Spielen: In unseren MERKUR Spielbanken kannst Du allein oder mit Freunden einen stilvollen Casino-Abend verbringen. Ein gehobenes Ambiente, wechselnde Events und Aktionen sowie unser ausgezeichneter Service runden Dein Casino-Erlebnis ab. Mit der Eröffnung der ersten Merkur Spielothek im Jahre 1974 begann die Ära der traditionsreichen und besonders im deutschsprachigen Raum überaus beliebten Merkur Spielautomaten. Die Gauselmann GmbH hat seitdem in Europa viele landbasierte Möglichkeiten für ihre Fans geschaffen und seit 2011 können die Spiele mit dem Emblem der lachenden Sonne auch online genossen werden. Eine toxische Beziehung, dazu ein offenbar gewalttГ¤tiger Ehemann: Nein, das ist nicht der Gerichtsprozess von Amber Heard und Johnny Depp. Der “Tatort” aus Dresden enthГ¤lt dennoch erstaunliche Parallelen. Viel Input ist nun zum Thema Book of Ra online bei Ihnen gelandet. Falls Sie sich nicht fГјr eine Version entscheiden kГ¶nnen, spielen Sie einfach alle im Demomodus durch. Nach und nach wird sich herauskristallisieren, welche Ihnen am besten gefГ¤llt. Auf einigen GlГјcksspielportalen wird die klassische Version nicht mehr angeboten, nur noch Deluxe. Wie oben erwГ¤hnt, groГџe Unterschiede gibt es ohnehin nicht, deswegen kГ¶nnen Sie getrost beide Varianten spielen. Alles, was Sie tun mГјssen, damit Sie Online-Slots kostenlos spielen kГ¶nnen, ist auf die SchaltflГ¤che „Spielen“ zu klicken. Nach ein paar Sekunden wird das Spiel direkt in Ihrem Webbrowser geladen. Dazu muss kein Programm auf Ihren Computer heruntergeladen werden.

  3. … [Trackback]

    […] Read More Information here on that Topic: […]

  4. nova88 says:

    … [Trackback]

    […] Here you will find 41057 more Information on that Topic: […]

  5. Bahis sitelerine son zamanlarda ilgi hayli artmış görünüyor. Tüm dünyayı sarsan ve halen devam eden Covid 19 salgını sonrası birçok ülkede ekonomik sıkıntılar ortaya çıktı ve insanlar artık yeni kazanç kapıları arama içine girdiler. Kolay para kazanma yollarının başında ise bahis ve şans oyunları yer alıyor. Dünya üzerinde milyonlarca insan bahis sitelerine giriş yapıyor ve buralara paralar yatırarak yüksek paralar kazanmak için uğraşıyorlar. Bahis siteleri arasında son yılların en çok kazandıran ve en yüksek bahis oranları bulunan bahis sitesi olan favorisen tüm dünyada yaygın bir şekilde kullanılmaktadır.

  6. Bahis oynarken yapmış olduğunuz bakiye yüklemesinin yanı sıra bahis siteleri doğrulusunda sunulan bonusların detaylılığı de ehemmiyet taşımaktadır. Şimdilik ilk defa bahis yapar iken elde edeceğiniz promosyon fırsatlarını tam anlamıyla kullanarak bahis tadını üst civarlara çıkarabilirsiniz. Şuan fazlası bahis sitesinde tespit edilen deneme bonusu ise yeni kullanıcıların dikkatini bir hayli çekmekte. Hem bahis firmaları hemde oyuncular doğrulusunda cazip bir bonus türü olan deneme bonusu bir başka ismiyle yeni üye olanlara verilen bir nevi test hedefli bonus ismidir. Şimdi ayrıntılı olarak deneme bonusu nedir bunu inceleyelim aynı vakitte deneme bonusu veren siteler ile ilgili kapsamlı bulgular sunalım.

  7. … [Trackback]

    […] Information to that Topic: […]

  8. nova88 says:

    … [Trackback]

    […] Find More here on that Topic: […]

  9. botox treatment for the bladder

  10. botox injection to bladder

  11. cpt code for botox injection in bladder

  12. … [Trackback]

    […] Find More on that Topic: […]

  13. botox injections for bladder incontinence

  14. Chevrolet Aksesuarları

  15. Parça eşya taşıma işlemi! Özel eşyalarınızın özel paketleme yöntemleri ile başka bir şehre ulaşmasını mı istiyorsunuz? Kaliteli şehirler arası nakliyat süreçleri için Öz Filo Şehir İçi Nakliyat ile çalışın.

  16. how much does botox in your forehead cost

  17. too much botox in upper lip

  18. does juvederm hurt more than botox

  19. hırsız alarm sistemleri

  20. instagram izlenme satın al

  21. … [Trackback]

    […] Read More to that Topic: […]

  22. seo analiz google sıralama yarışması

  23. … [Trackback]

    […] Information on that Topic: […]

  24. is botox for migraines covered by msp

  25. Situs Judi says:

    I savor, result in I discovered exactly what I used to be havikng a look for.
    You’ve ended my 4 day long hunt! God Blexs you man. Have a great day.


    My web blog … Situs Judi

  26. botox says:

    botox botox near me botox before and after

  27. botox says:

    botox botox near me botox before and after

  28. botox says:

    botox botox near me botox before and after

  29. gbpu19 says:

    cialis otc switch cialis and viagra together discount cialis

  30. unliblydoeb says:

    zithromax azithromycin buy zithromax without prescription

  31. high quality instagram story downloader for mac

  32. download photo to computer instagram

  33. computer instagram video download

  34. instagram free program free video download

  35. android quality instagram video download

  36. ipad quality instagram image download

  37. download mac instagram highlights online

  38. iphone featured download instagram

  39. instagram computer image download

  40. tablet instagram reels download

  41. instagram android story download online

  42. how to download instagram quality profile picture

  43. … [Trackback]

    […] Find More Information here on that Topic: […]

  44. instagram private account post download

  45. Michaelbaxia says:

    cialis tablets – cialis black is it safe

  46. ios descargador de imágenes de perfil de instagram

  47. laadige telefoni instagrami lugu

  48. relx says:

    … [Trackback]

    […] Read More Info here on that Topic: […]

  49. download de imagem ig grátis ipad

  50. psilocybin says:

    … [Trackback]

    […] Info to that Topic: […]

Leave a Reply

Your email address will not be published. Required fields are marked *