How To Move WordPress To A New Server Or Host

I have seen many requests online on how to move a WordPress blog to a new server or host- including requests from some of my readers.

Move your WordPress blogIt seems as though the easy part is transferring the files. What most people find difficulty with is moving their WordPress database to the new server or hosting company.

While there are other tutorials available online, many seem to lack clear instructions on how to move your blog. In this tutorial, I’m going to take you step-by-step and show you exactly how to move your WordPress blog to a new server or host.

It may look difficult at first with all the steps I’ve included, but I assure you- it’s easier than it looks- especially after you move a blog a few times. It may seem like there are many steps to moving your WordPress blog to a new server, but there really aren’t that many. I’ve just broken each step down to make it very clear even to beginners exactly how to move their WordPress blog.

So, are you ready? Here we go:

Open either your FTP program or your file manager through your hosting company and browse to your home or public_html directory. With WordPress installed, it should look something like this:

How To Move A WordPress Blog To A New Server Or Host

You want to download all the files and folders to a convenient location on your computer, then upload all the files and folders to your new server/host.

Once you have all the files on your new server/host, you need to download a copy of your original WordPress database from your original host.

(All of the following screenshots were taken from cPanel, but if your host uses a different administration panel, the steps will be the same- they may just look slightly different.)

Once logged in to your administration panel, go to phpMyAdmin.

How To Move A WordPress Blog To A New Server Or Host

Once you click phpMyAdmin, in the left column click on the database that is used for your original WordPress blog.

How To Move A WordPress Blog To A New Server Or Host

You should now see the name of the WordPress database in the drop-down box and all the WordPress tables listed underneath. The tables you have can be different than mine because the WordPress plug-ins you use will determine what tables you have in your blog’s database.

Regardless, it should look something like this:

How To Move A WordPress Blog To A New Server Or Host

Now in the main window, click the tab at the top of the screen that says “Export”. In the “Export” box, all of your WordPress database tables should be highlighted.

How To Move A WordPress Blog To A New Server Or Host

Underneath that, check the box that says “Save as file” and name it whatever you want, then click “Go” to download your blog’s database.

How To Move A WordPress Blog To A New Server Or Host

Click the “Save” button to save a copy of your WordPress database to a convenient location on your computer.

How To Move A WordPress Blog To A New Server Or Host

Congratulations! Now you’re done with your old server/host! It’s time to move on to the new server/host.

Login to your new server/host’s control panel. The first step is to create a new database that will be used for your new WordPress Blog.

Click on “MySQL Databases”.

How To Move A WordPress Blog To A New Server Or Host

Under “Create New Database”, enter a name for your new WordPress database, then click the “Create Database” button.

How To Move A WordPress Blog To A New Server Or Host

Now that your new WordPress database has been created, we need to make a new user for that database. Usually on the same screen you’re at, you have the option to create a new user.

Enter a name and password for the WordPress database user and click the “Create User” button.

How To Move A WordPress Blog To A New Server Or Host

Now you have to give that user permission to use your blog’s database. Again, usually on the same screen you will have the option to add that user to the database. Select your WordPress database and the user you just created, then click the “Add” button.

How To Move A WordPress Blog To A New Server Or Host

On the next screen, you have the option to grant which permissions this user has to your blog’s database. Be sure to grant this user total access to the WordPress database by checking “All Privileges”, then click the “Make Changes” button.

How To Move A WordPress Blog To A New Server Or Host

You should get a confirmation telling you that the user has been successfully added to the database.

How To Move A WordPress Blog To A New Server Or Host

Now that your new database has been created, we need to import your old WordPress blog’s database contents into your new database.

Back in the main window of your control panel, click on “phpMyAdmin”.

How To Move A WordPress Blog To A New Server Or Host

In the drop-down box in the left column, select your new WordPress database that you’ve just created. It should say that there are no tables in the database yet, since it’s a blank database that you’ve just created.

How To Move A WordPress Blog To A New Server Or Host

In the main window, click the “Import” tab. Under “File To Import”, click the “Browse” button and select the .sql file that you downloaded from your old WordPress database, then click the “Go” button.

How To Move A WordPress Blog To A New Server Or Host

After waiting for the entire blog’s database to import, you should get a confirmation telling you that the tables have been successfully imported. Again, the number of queries that were executed may be different than mine, depending on which plug-ins you have installed.

How To Move A WordPress Blog To A New Server Or Host

Now in the left column, you should be able to see all the WordPress tables that were just imported.

If your new WordPress blog is using a different domain name than the original, we need to modify three values, and they are all located in the “options” table.

Even if you are using the same domain name, there is one option you may have to change. I would recommend you continue to follow along, even if your new WordPress blog is using the same domain name as the original blog.

All of the changes we need to make are located in the options table. My options table is named “wp1_options”, but yours may be a little different (probably “wp_options”), just as long as the suffix is “options”.

How To Move A WordPress Blog To A New Server Or Host

After you click on the options table, click the “Browse” tab at the top of the page.

How To Move A WordPress Blog To A New Server Or Host

One of the option names will be “siteurl”. You will see that your original domain name is listed. If your new WordPress blog is on a new domain name, you need to edit that value to your new domain name.

You can do so by clicking the “Edit” button, which looks like a pencil.

How To Move A WordPress Blog To A New Server Or Host

Once you click the “Edit” button, just enter your new blog’s URL and then click the “Go” button to save the changes.

How To Move A WordPress Blog To A New Server Or Host

The next two values we need to change are usually located on page 2 of the options. At the top and bottom of the main window, you should see the heading “Page number” with a drop-down box. Select page 2.

How To Move A WordPress Blog To A New Server Or Host

Scroll down until you see the “home” option. Again, you will see your old WordPress blog’s URL. Click the “Edit” button which looks like a pencil to modify the old blog’s URL.

How To Move A WordPress Blog To A New Server Or Host

After you click the “Edit” button, enter your new WordPress blog’s URL, then click the “Go” button to save the changes.

How To Move A WordPress Blog To A New Server Or Host

The third and final value we need to change is the upload path. This is the location where WordPress will upload all of your images.

Scroll down until you see the “upload_path” option, and again click the “Edit” button that looks like a pencil to modify this value.

How To Move A WordPress Blog To A New Server Or Host

Now you need to enter your new upload path. The only part of your new upload path that you need to modify is the username that your hosting company gave you for your domain name.

This is usually just after “/home/”, and in my case is “jrivnet”. Replace this with your new username. This is usually the username you use to login to cPanel, or your domain’s control panel.

How To Move A WordPress Blog To A New Server Or Host

If you are still unsure as to what it is, take a look in the left column. Your username is the prefix of your WordPress database. Notice how mine is “jrivnet”.

How To Move A WordPress Blog To A New Server Or Host

Once you’re done with that, click the “Go” button to save.

WHEW! You’re finally done with all the database stuff! Your final step is to go to your wp-config.php file of your new WordPress blog. This is in the root folder of your WordPress blog (usually /home/ or /public_html/). You can do this with your FTP program or the file manager for your new WordPress blog through your hosting company.

Find the file “wp-config.php” and click “Edit”.

How To Move A WordPress Blog To A New Server Or Host

Once the “wp-config.php” file is opened, the first things you will see are:

DB_NAME, DB_USER, and DB_PASSWORD.

Enter your new WordPress blog’s database name, username and password between the ‘ ‘. Look at the 13th image in this article above just below where I said “You should get a confirmation telling you that the user has been successfully added to the database”. That was my new WordPress database and username that I created. The 10th image in this article is where I created the user’s password.

This IS NOT your WordPress admin username and password! This is your database’s name and password which you just created for your new host/server.

How To Move A WordPress Blog To A New Server Or Host

Once you enter the new information, save the updated “wp-config.php” file.

You’re done!

You can now go to your new WordPress blog’s URL admin login (i.e. example.com/wp-admin) and login using the same username and password you were using on your original WordPress blog.

How To Move A WordPress Blog To A New Server Or Host

That’s about as simple as I can explain the process of moving your WordPress blog to a new server or host. If you have any problems, feel free to post your comment below and we can all do our best to help you along.

178 thoughts on “How To Move WordPress To A New Server Or Host

  1. Now that’s what I call clear instructions… I have one question tho… on the WordPress site instructions for backing up the database, it says to:

    * Ensure that SQL is checked!

    # The SQL section
    Tick the following boxes:

    * ‘Structure’
    * ‘Add DROP TABLE’
    * ‘Add AUTO_INCREMENT’ and
    * ‘Enclose table and field names with backquotes’

    # The DATA section
    Leave the boxes inside this section unticked, but make sure to keep the checkbox next to the “DATA” heading checked.

    And then “SAVE” the file… I’m assuming we do the same in this case also? Just want to make sure I got it right… ;)

    The Options part is where I think most people get lost along with forgetting to update the Config file… I know I did… LOL…

    Thanx for the quick response and detailed info… I’ll be printing this out just to make sure I don’t forget something and screw things up in the future…

    GREAT JOB!

  2. @ Linda:

    Thanks for the kind remarks. I suppose I didn’t even think about that part because it should be checked by default. Here’s what I have checked:

    STRUCTURE
    - Add IF NOT EXISTS
    - Add AUTO INCREMENT value
    - Enclose table and field names with backquotes

    DATA
    - Complete Inserts
    - Extend Inserts
    Maximal length of created query = 50000
    - Use hexadecimal for BLOB
    - Export type: INSERT

    That should about do it!

  3. P.S. – You dont need the “drop table” option unless you’re overwriting an old database. That option would automatically delete all your old tables and then import the saved ones.

    If it’s a new database, you don’t need it but it can’t hurt either.

    - John

  4. Hey John,

    Excellent post. Finally something that is not a copy-paste of the same two tutorials on the net.
    I am attempting to follow this guide now, moving my localhost wordpress online.

    I am worried that some URLs will need to be changed, but I hope I will be able to edit all through the wordpress interface, and without the need to dig into the database tables.

    Thanks for this nice post.

  5. Danny,

    Thanks for the comments. You will need to update the URL in the database, otherwise when you attempt to login to your admin panel, it will redirect you to the old URL.

    Unfortunately, there is no way around this. Other than updating the tables in the database that I’ve outlined in the tutorial, you won’t need to make any other changes to the database manually.

  6. Oh, no no – I have no problems at all going into phpMyAdmin and editing stuff – as long as I know what I need to update… :)

    I already implemented your guide to the letter, in regards to editing the three database entries, I just hope I will not bump into MORE things that I need to update – you know, things that would still go to “localhost”.

    I think it is totally a missing feature in wordpress – I was very disappointed to see that the Export feature is not exporting everything, including file structure and plugins etc.

    I mean, one would expect that many people would like to keep their site locally, on localhost, do the editing there, and just “sync” it with the online site.

    Anyways. :)

  7. Excellent tutorial!! (the ‘myPHPAdmin’ screengrabs are very re-assuring!)

    Just transfered a site using it and have only two things to add that may be relevant:

    1) May be obvious but the first place to look if you get an error upon finishing the process is your config file. Make sure the database, username and password are dientical to the details you used to set up the database in MySQL. (i.e. no room for a dash instead of an underscore. *ahem*)

    2) You can avoid modifying the urls in the database tables after you import. —- After backing up your original wp database go back into wordpress and change the domain urls (under settings/options) to your new url. Then back up the database again (dont replace the last one just to be on the safe side) and import this database into your new mySQL database.

    thanks again!

  8. @ smalldifferences:

    Thanks for the comment. The only thing is with step #2, if you don’t modify the URL in phpmyadming, when you attempt to visit the new blog’s URL it will usually redirect you to the old URL.

  9. Just what I’ve been looking for as I’m about to try to move a blog to a new domain name. Have a question though.

    Is it ok to create the new database on the new domain using Fantastico? I believe that creates the new database plus all the WP files. Then would I be able to just copy over the old files from my old domain?

    THanks

  10. @Jay:

    If you use Fantastico, the only files you would have to copy from your old host are your theme and plugin files. You would then have to import the old database to the new one.

    You can run into a lot of problems with Fantastico when you’re not starting from scratch, however. For one, the version of WordPress that Fantastico installs can be different than the version you were using.

    I’ve never been a fan of Fantastico. If you’re going to be moving files anyway, you might as well move them all. Moving only some or all of them requires no additional skill on your part.

  11. Thanks John. I’ll most likely move them as per your instructions. They’re very well laid out. Once I move one, any others should be a breeze. Just want to move the files to a new domain on the same host.

  12. John,

    Everything went smoothly until I changed my wp-config.php file then I got “Error establishing a database connection” I double checked my database name, user name and password and it’s correct from what I can tell.

    Any suggestions?

  13. @ Jay:

    Double check your database name and username. Note that the actual name you assign for each comes after your hosting account username and an underscore.

    For example, if I had the database name “newdatabase”, the complete database name may be “jrivnet_newdatabase”. (See the last screenshot above)

    Lastly, be sure you don’t forget to add the user you created to the database with all permissions. (See the 11th and 12th pictures of the tutorial above)

  14. Don’t ask me why but I figured I try deleting the username and just assigning it again to the database and it works now.

  15. Excellent tutorial, very well explained and easy to understand.

    I have never done the wordpress site transfer and it was my first attempt when I transferred a wordpress site following this tutorial. It has transferred successfully but not showing the content.

    I am sure it must be my mistake somewhere, I will get it fixed.

    Thank you very much for writing this great tutorial.

  16. In my case I needed to do one additional step.

    It is unclear which encoding phpMyAdmin uses to export databases – utf8, etc..
    However it should be properly selected while importing otherwise results will be unpredictable (in my case posts were imported only partially despite of phpMyAdmin says everything is ok).

    I solved this puzzle by converting exported database to utf8 encoding manually by Notepad++ and by selecting utf8 on import stage.

  17. Thank you SO much for this! To prevent too much downtime, I’m totally redoing my site using WordPress as a CMS on my localhost, and uploading it to the new server was one of those head-scratchers. Your instructions made it so much more clear! Kudos!

  18. hi there,

    thanks for a detailed steps-by-steps guide. it’s really helpful. however, after completing all the steps, I was prompted with this error.

    seeking your assistance

    Fatal error: Call to undefined function get_option() in /home/kembaram/public_html/wp-admin/admin.php on line 21

  19. FINALLY! I have been pulling my hair out, scouring the internet, creating and deleting databases, dumping records, exporting and importing – all to no avail for over 4 hours. Then lo and behold I find your tutorial. THANK YOU! THANK YOU! THANK YOU! THANK YOU! THANK YOU! THANK YOU! THANK YOU! THANK YOU! THANK YOU! THANK YOU! THANK YOU! THANK YOU! THANK YOU! THANK YOU! THANK YOU!

    ’nuff said!

    :-)

  20. Thank you very much for writing this clear tutorial. I did everything except for create a new SQL db. This is what I did.
    1. download another different domain name on another host WP SQL db and WPHome.tar file.
    2. upload these files to a new host/ new domain name
    3. added files to existing db as the db had no posts other than hello post, so a blog was already installed with db using fantastico.
    4. replaced URL names on wp_posts to new URL name
    5. Followed your instructions above (except creating a new db)
    6. couldn’t remember my existing db pswd (arrghhh)
    7. tried to change wp sql db user password following instructions at
    http://codex.wordpress.org/Resetting_Your_Password changed successfully
    but still can not login into examplesite.com/wp-admin or examplesite.com/wp-login.php

    I get this error
    Error establishing a database connection

    This either means that the username and password information in your wp-config.php file is incorrect or we can’t contact the database server at localhost. This could mean your host’s database server is down.

    * Are you sure you have the correct username and password?
    * Are you sure that you have typed the correct hostname?
    * Are you sure that the database server is running?
    Any ideas on how to change a WP SQL user password ?

    Lisa

  21. Lisa
    To change the WordPress password through the database, you need to login to your phpmyadmin panel.
    1. Find your wordpress database and select it
    2. Find table wp_users
    3. Click on the user table link
    4. Then find and click on Browse
    5. Find the user for whom you want to edit the password and click on the the pencil image next to the red X.
    6. Now you need to use a MD5 password and not plain text. So go to http://pajhome.org.uk/crypt/md5/ and convert your plain text password to MD5.
    7. Copy and paste your MD5 password in the place of the old one in phpmyadmin
    8. Save the password and that should do the trick

    If you are still having trouble, let me know

  22. Hello George-
    Thank you for your tip, I did change my password.
    I was able to navigate to my site.
    Got a 404 when I logged with site.com/wp-admin

    when I logged in with site.com/wp-login.php
    I got a login screen with following error
    in the “username” field this was autopopulated “<br” characters

    in the place where password box is normally, this is what it
    stated.

    Fatal error: Call to undefined function esc_attr() in /home/netgurl1/public_html/wp-login.php on line 505

    I don’t know php so when I checked the source wp-login.php file I could not determine what would be required to fix this?

    Lisa

  23. Thank you for a wonderful tutorial. I’ve read every tutorial I could find and non come close to providing the well detailed information that you have provided.

    I do have one question, hoping you could answer.

    Everything looks to have transfered perfectly with the exception being of my content as it is not showing up. Any idea why this may be? Thanks!

  24. Thanks to this tutorial, I’ve been moving sites left and right with no problem. Today however, once I change my config.php file I get a fatal error:

    Fatal error: Call to undefined function wp() in /home/myid/public_html/mydomain.com/wp-blog-header.php on line 14

    Any suggestions? I’ve checked and double checked my config file to make sure I have the right database name, user and password. If I use the old sites config file the site comes up under the new url but then of course any links take me to the old site.

    Thanks

  25. Nevermind. Finally got it fixed. I deleted the user and re-added it to the database. That worked so perhaps the user creation got corrupt or password wasn’t good.

  26. hi plerase can you help,

    Have moved my website to a new server and domain.

    Followed simple instructions but still no joy, my website appears but without any of the styling or template.

    THe admin panel doesn’t appear at all, says ‘ sorry could not find site windowstoptips.com, but the admin is http://www.windowstoptips.com/wp-admin

    can you give me an idea as to where i have gone wrong?

    would really appreciate the help.

    thanks

  27. I can’t believe it worked!

    Well it had to be done and I didn’t have a clue. Watched several YouTube videos and still confused.

    In the end I printed this out and just went through it step by step.

    Refreshed the screen thinking no way, and up my blog popped.

    You see even a Carpet Cleaner can do it!

    Thanks very much for your article.

    Mike

  28. Thank you for your detailed instructions, I am still currently working on my site but your step-by-step really helped me get my blog off a local wampserver install and up onto hostgator.
    Much appreciated!

  29. Excellently detailed tutorial, and when, I was watching the post dates back to 2008! Now there are WordPress plugins which takes backup of database; so the only troublesome process will be taking backup of the wp-content/uploads folder (if the blog is old, this folder will carry a huge load of images!) But you’ve explain the thing which no others usually tell us – the db fields editing part. Thanks a lot!

  30. Brilliant… I’ve struggled with this for ages and your description talked me through it in about 20 mins.

  31. Thank you for this. Greatly appreciated. The only thing is that my “upload_path” option was blank, so I left it blank. I hope this is OK?

  32. Thanks. I have searched high and low. This is the easiest guide to follow. Work flawlessly with the transferring of my website to another server. Love the pictures with markings.

  33. Thank you so much for this! I had every thing correct except all uploads were trying to go to my old host. I have it fixed now, thanks you!

  34. Thanks for this guide. My WordPress site has been moved successfully. The only problem I had was when moving from my old host to the new one, I did not know where to upload the WordPress installation. For a while it did not work. I was trying to figure out why when I saw that your guide had references to the ‘public_html’ folder in the screenshots. I moved the install into the ‘public_html’ folder and everything worked. Anyway, thanks again.

  35. Thanks for this. This is the first place that I have seen mention of the wp_options changes. I wanted to check that everything worked on my new host using just the IP, but Wp wanted to redirect back to my domain on the old host. This helped a lot to check out my new install.

  36. Thanks for sharing such easy to use guide. after followed this i got 95% successful transfer. all posts working at new host. only got some design problem in blog theme.

  37. Thank you so much. Everything worked perfectly. Much appreciate … wishing lots of good karma for you.

  38. Hey, Thanks for this article, I was searching on Google, how to migrate wordpress blog from 1 server to another server and I found your article and used the tips as you have mentioned and great article with snapshot presentation which was very helpful for person who has less technical knowledge. I used your steps and wow I did my job with 0 downtime.
    Thanks so much

  39. After completing all steps, I am getting the weird problem “Error Establishing Database Connection”. I triple checked the database name,username and password in wp-config file. They are all correct. Tried deleting the db user,creating new ones with all privileges and updated wp-config again. Still not working. When accessing wp-admin page the error shows that wp is still using my old database with this format ‘oldserverusername_dbname’ as opposed to ‘newserverusername_dbname’ . Whats the problem? How to solve it? 48 hours passed after I update the nameservers at domain registrar. Still the site showing “Error Establishing Database Connection”. Also I dropped 7 positions down in Google Rankings in these 2 days :(

  40. If you are getting connection to database errors it means that the username and password is wrong or the database name i.e “localhost” . Make sure you do not have any spaces in any of them that shouldn’t be there, a space still counts as a character. If all else fails contact your host they should be able to tell you why its not connecting.

  41. This is a great step by step tutorial. I successfully transferred my WP blog from one host to another, so thanks for the tips!

  42. Thanks a million John. The only snag I run into is when I check the MYSQL database on the new host, it says 0 MB for the database. Any suggestions?

  43. Hi John,

    Thank you so much for the great and simple and straight forward instructions, it worked fine.

    all the best with your career and wish you the best success.

    Vadood.

  44. Super post !! I have looked through numerous other places for this info about moving a WordPress site, this was the best! Moved my church website (from working subdomain at my website) to a dedicated website! Worked like a charm, Thanks so much! Will keep this bookmarked!

  45. Hey there,
    This was the only useful explanation with pics. Ill link to this since it was so useful. I tried other instructions but with no pic they were difficult.

  46. This is a freaking LIFE SAVER!!! My only question is how can we swap out this tutorial for the absolute dribble that is currently being published regarding this in the WordPress Codex guide?
    The powers that be at WordPress Codex would be doing us gentle readers a huge favor!!!!

  47. I have followed all the steps but when I try to visit my site on the new host, I get an error 404 message. Don’t have a clue what might be wrong.

  48. I have a very strange request, because I’m in a very strange situation:

    I have a WordPress site, and am trying to move it to a new server. Originally, a friend of mine allowed me to host it on his server, but I bought my own hosting and am trying to migrate content onto it. The problem is, the friend is in military training right now and doesn’t often get a chance to go on a computer, and I don’t have access to his main Hostgator account, though he set it up so I can use FTP and such. So I don’t think there’s a way to get the MySQL files from his account to mine, and the idea of having to migrate content again, after all the months it took me the first time, makes me want to cry.

    Is there anything I can do, anything at all? I have all my files, thanks to the FTP account, but I just don’t think there’s a way to do the MySQL database stuff.

  49. Hi dude
    I just have to say you are the bestest so far especially because wordpress themselves do not even have a guidance to leading people to doing this and in the process things get messy. Also hostgator’s referal sucks and i would tell them when people ask how they can go about uploading they should refer you. I uploaded it nothing broke all link works, images not even a mistake.
    I do owe you one if u ever ask for donation for some sort of development i would be glad to. this is the third day of unravelling this mystery behind uploading locally to server with hostgator chat team freaking me out with some word press codex tutorial that offer no solution
    Thank you.

  50. Thanks!!!!!
    Its nice tutorial.
    Actually great tutorial.
    Those who provide so called ‘STEP-BY-STEP’ tutorial must see/ read this.
    THANKS AGAIN!
    You saved my day!

  51. Thank you so much for this guide. I’ve just moved my WordPress page onto a new server and would have been completely lost without this.

    The only problem I had was a small issue with my .htaccess file but I think that’s sorted out and everything works now.

    Cheers!

  52. This article rocks. You are a star! I tried reading the WordPress official documentation on moving to another server and they left out a lot of critical info. Thank God I found your blog. So easy to follow. Had my site moved to a new server in about 20 minutes.

  53. Hi, Thank you for this tutorial. Everything ran smoothly and it was easy to follow.

    The only problem i’m having is if you click on any page links on the homepage it re-directs me to the old url. I’ve changed both the site url and home in database as outlined.

    I noticed in two comments above a similar problem and the issue was resolved with deleting the user and re-installing? Can you give more detail on this, or any suggestions.

    Thanks!

  54. I can’t tell you how many places I’ve bookmarked this post; and I even have this link mailed to myself. Amazing work brother!! I come back here whenever I’m moving a wp site :)

  55. Not sure what I am doing wrong. But when I go into phpmyadmin I don’t see anything in my upload path and regardless of what I enter the images still don’t come up. I even edited the sql file with a text editor to set them to the proper path but nothing. They show up in the media library and appear to be at the appropriate path… IDK… Head scratcher. I can log in to the site but none of the pages properly link… Any help is appreciated.

    Thanks!

  56. Amazing tutorial, had one problem with the database error but changed the localhost with my servers address and all was well :]

    THANKS!

  57. This is a great tutorial. Most people are definitely overwhelmed when it comes to the DB and configuration challenges.

    There is a tool called BAM! (www.bamtastic.com) that can move a wordpress (or joomla/drupal/other) site to a new server, or create a backup, and handle all the database and config changes automatically. It is definitely a huge time saver (and headache saver!) for those that don’t want to get into the database, command shell, etc. Check it out!
    (I’m a bit biased since I wrote BAM!, but it really is a great tool for moving wordpress…and its FREE to try!)

  58. Hi,

    Great Tut!

    i have recently transferred my site to a new host with your guide. The landing page works fine when visiting the new url however no of my other pages can be found.

    Any ideas?

  59. Thanks for putting together a great, easy to follow tutorial – and it still works! I was dreading merging one site into another, but I did it, much to my surprise. Thanks again!

  60. Finally, I found a more comprehensive tips and tutorial in transferring a wordpress site to a new web host. My blogs are already exceeding bandwith, and I need to transfer them to a higher server. Thanks for sharing this.

  61. Just a quick note – for websites using the new multi-site option from WordPress – you will need to repeat this option for all entries (wp_1_options, wp_2_options etc. depending on how many sites you created).

  62. Sadly, I used someone else’s tutorial. In it they suggested I change site URL and blog URL on localhost before moving to new server. Now I can’t login on localhost to wp-admin which I need to find all the settings for various plug-ins and theme modifications I made. I have been able to pull up home page on localhost. Other links take me back to a XAMPP page. Sigh:(

  63. Hey John, I just wanna say that you article saved me 3 hours of work lol. Short and to the point. DB changes was exactly what I was missing. Thanks for sharing!

  64. Thank you! Seriously, I have spent two days and a lot of eye-strain reading a multitude of articles, none of which helped me switch servers or correct some of the glitches…. then I found your article! Bam! It’s the complete necessity guide. If only I had found it first! Then again, then I would potentially think everyone was great at explaining things, and instead, I know that true experts are few and far. Thank you again. :) Only TWO articles were of help, and this was one!

  65. Very very easy to follow instruction. Thanks a lot! I just tried to migrate WordPress from one domain to another on the same server (as testing) and it worked flawlessly.
    Thanks a lot!

    -Abhi

  66. Thank you so much! I was about to hire this out, because I was getting errors…I was missing the piece where you go into the options and update the URL in the database itself. This was a HUGE help!

  67. John, I have been battling like an absolute novice for more that a week now.
    All I want to do is replicate my WP Website into my local host.
    I dont want to go down another blind alley, please,
    Will this work (Anyone!)

  68. Super clear guide, but unless I missed it, there’s no mention of the most important and final step: pointing the nameservers to the new host!

  69. Wow! I just cant believe it. I kept checking the whois service and refreshing the page to see if it the site is really hosted on the new server!
    I really was expected some weird error! But WOW!!!

    Thank you so much for this detailed article!

  70. Thank you so much. You have no idea how much this has helped me. For anyone looking to do this and getting intimidated by the sheer length of the article, DO NOT. Trust me. I was intimidated too and overwhelmed by the no of steps. But once i did it, i faced no issues. It was a breeze, to say the least.

  71. I actually found the database portion a lot easier than the download/upload files. Maybe throw in the permission issues, makes for a day of pulling hairs.

    But to put this in perspective, how long should this process take. It took the whole weekend plus one day to get done and maybe a total of 15 hours (getting around the site, checking out the database, accessing log in, trial and error on export/import, setting up database, backup, download/reupload files, working around permission debacles and so on)

    Any takes?

  72. Hi, I just found an issue with this method. Everything looked perfect except images. I tried to add more content to the website. But I couldn’t see the images either in the edit window or the browser. I saw somebody mentioned this above. Can anybody give me some ideas? Thanks.

  73. hello
    i have already upload my wordpress website on the ftp but when i go in wp-amin and login in it then it redirected it to localhost i have already changed config.php. please help me that how ca i redirected the wp-admin on the server also ??
    Any help appreciated and thanks for help

  74. If its redirecting then you havent followed the instructions in the article from the point where it says “Now in the left column, you should be able to see all the WordPress tables that were just imported”

    Find that sentence in the article and follow the instructions down, You basically have to manually change the URL’s and the absolute route paths to a couple of fields.

    Follow the article by the letter and it will work perfectly.

  75. Hey these instructions are the only working ones!

    Thanks so much for the nice piece of work. I wish all how-to s would be this clear.

    Thanks again, you’ve saved my day too!! :)

  76. Well It worked for me first time. Thank you so much for sharing your knowledge.

    Keep posting things like this!!!!

  77. Ah, thank you so much for the wonderfully clear walk through! You took what I thought was going to be a long, painful process and simply and clearly broke down the steps so there was no fear in the transfer.
    The only problem I ran into was remembering to change the index.php to ‘./wordpress/wp-blog-header.php’ since that was the location of the wordpress install.
    Thank you so much for the great write-up!

  78. hello, great tutorial! however , followed all the step but then get the message that ‘server cannot be found’. Do you have any idea where the mistake is then? i checked config file, it is changed, data base and user and pasword are ok. changed data base like you showed…
    look forward to your answer, thanks nick

  79. Thanks for the step-by-step process. Even though this is an older version of phpMyAdmin, I was still able to do everything. Thanks!

  80. Hello, thanks for this fantastic tutorial! I finally got the transferred site up on the new server but there is one issue: the font for the site (Arial) now shows up in the body of the home page, but for all other pages and the admin edit links on the main page, everything has reverted to Times New Roman, which appears nowhere in the style sheet. This site is for a client and I desperately need some help fixing the issue! Thanks!

  81. This is absolutely the best tutorial for importing a wordpress database into another wordpress installation! I needed to set up a “Sandbox” using another domain, so that I could make revisions without any downtime on my original domain using wordpress as my platform. Appreciate your resource!

    Thanks, Mark

  82. I was trying to move a complex website (server and domain), and this is by far the best tutorial I could find. Finally something real and not a copy and past of some other old post.
    The technique worked so smoothly I still can’t believe how easy it was.
    Thanks very much, you really saved a lot of time for me!

  83. This is by far the best tutorial i have received on the subject. It got straight on with my transfer. THANK YOU. THANK YOU. THANK YOU!

  84. The best instructions for moving to a new server anywhere. The WordPress Codex instructions are not as clear or as straightforward. My site was rehosted in about an hour, and most of tha was download/upload time–a record!

    I installed the Search & Replace plugin to catch any instances of the old server username or URL that might have been missed, otherwise no extra steps were needed.

    Well done, and thank you!

  85. Excellent tutorial; thank you! I have a question, though. I want to get my site transferred and check to be sure it’s working BEFORE I switch my nameservers over.

    Can I just change the database options to the numerical URL to test it, and then once I’m sure everything is working, chance them again to the domain name, when I switch the nameservers?

    (I’m thinking I’d like the old site to still be functional through as much of the testing process as possible. Last time I did this, there were issues with the WP installation not recognizing the DB and DB user because of the new server prefix.)

  86. I hardly ever comment on articles online but THIS! You’ve saved myself (and a lot of other people over a few years…) so much time and hassle. What an absolute joy to have such clear instructions which are so well explained. Thank you so much for sharing this with everyone!

  87. Wow. thank you. Read close to 10 “how to switch…” articles with no luck before finally coming across this one. By far the best tutorial for someone like myself with relatively little knowledge of the inner workings of wordpress

  88. GREAT TUTORIAL!!!

    Thanks. It made the process straight forward and quick.

    Best regards,
    Jack

  89. hi,

    i was able to manage to follow everything in the tutorial and transferred my wordpress site from one site to another. my only problem is that i cannot access my pages. when i try to click any link from the home page, i always get the 404 page not found page.

    i can login to the admin dashboard with no problems. all my content(posts/pages/plugins, etc) are all there. my only problem is that i cannot seem to access my pages.

    any help would be very much appreciated. thanks in advance.

  90. HI,

    I am very thankful to you, You write such a cleared article that how to transfer local wordpress website to server.

    Thanks again dear,

  91. I can’t thank you enough for this tutorial!

    I only wish I would have found it about 4 hours sooner :(

    Thanks again, you’re awesome!

  92. I’ve been at this for two days, into very late nights (or I should say early a.m.) Read so many sets of instructions to no avail; just couldn’t get it to work. Then I discovered you (this site) this a.m. Took me 20 mins.following your instructions. Thank you so much. I was getting depressed that I couldn’t get it done. You save the day and my sanity. Thank you so very much for your detailed, easy to follow instructions. Blessings on you.

  93. Excellent post, just completed a wordpress migration to a new hosting account using these instructions. Step by step stuff, with the screen shoots is really helpful and alot more detailed than the wordpress link my own hosting company suggested.

    A few fingers crossed moments but everything seems to have gone to plan, thanks again. I will be posting an article on my own website soon, recommending your link.

    Many thanks Ben

  94. Thank you for the great tutorial! I followed the steps and the homepage worked out perfectly.

    However, any links on the homepage doesn’t point to anywhere. The error I got was:

    The server encountered an internal error or misconfiguration and was unable to complete your request.

    Please contact the server administrator and inform them of the time the error occurred, and anything you might have done that may have caused the error.

    More information about this error may be available in the server error log.

    Additionally, a 500 Internal Server Error error was encountered while trying to use an ErrorDocument to handle the request.

    Any clue why is that? I’ve changed the URLs as you spec’d in those three places…

    Thanks in advance!

  95. Thank you very much for your tutorial. I managed to move online my local Instant WordPress installation. Your advices were great. They saved me a lot of time and probably money spent on manuals.

  96. Thank you! Amazing. I pulled my hair out for three days a few months ago trying to get a wordpress site developed on my local machine transferred to my web host. I’ve now had to switch hosts and was in despair until I found this – worked perfectly.

    Thanks again

    Dave

  97. Hi John,

    I went thru all the steps you suggested in your tutorial and got everything uploaded from my local system to my web server. I can even log into WP on my new website and view all of the posts in Edit format, but when I go to preview them (or just go to the URL), I get nothing but a blank page.

    Any ideas why I can see it in Edit, but not otherwise?

    Tx,

    Judy

  98. This must be the most complete guide to move your WordPress site.
    I was aware about all the steps but I used to change the old paths with the new paths BEFORE uploading the tables in the newly created DB. I used to edit the sql file I mean.
    Sometimes I got “blank page” errors which could be related to some problems within DB.

  99. John,
    The above accolades clearly show the need for clear step by step instructions.
    You are gifted with the ability to provide them and I thank GOD for people like you.
    Some of us elderly, computer newbies would otherwise be forced to watch the idiot box and die.
    God bless you and yours.
    Ed

  100. Great work. But what about the fact that the WP codex recommends changing the wp-posts URLs as well? (of course when you move to a domain with a different name)

    Did you skip this because it isn’t needed or does your method make the wp-posts changes not necessary?

    Thanks!

  101. Quick question, will this download/upload all of my image files too with the sql file? I am a photographer switching my wordpress based website to a new hosting site. I am not worried about the site (designing a new one) but wanted to know if my image files that I uploaded to my blog on the old host will download with these instructions and then upload to the new hosting server? Or do I have to upload them again separately to the new host? Thanks!

  102. Totally newbie question about this particular step:

    “You want to download all the files and folders to a convenient location on your computer, then upload all the files and folders to your new server/host.”

    Where exactly should I upload all the files and folders within my server/host?

    I installed wordpress on my new server and assumed I should replace all of the files and folders there with the ones from my old blog… didn’t work!

  103. Thank you so much for the detailed, and up to date description of how to transfer my blog. I was at a total loss to find something that worked but this worked the first try. THANKS!!!!

  104. Thanks
    After moving my wp blog into another server successfully but encounter the broken image problem now how can i fix this problem

  105. Hi, I understanding asking for technical support is not right in this comment so please e-mail me at support@internetmasterycenter.com if you have the solution.

    I just switch to a new web host so I did a backup-and-restore of my WP blog using mySQL. I came across the familiar “inaccessible older posts” problem and thought of resolving it by including the code:

    ErrorDocument 404 /index.php?error=404
    RewriteEngine On
    RewriteBase /
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]

    in .htaccess file.

    The permalinks are pointing correctly but I still get a “Page not found” error message on all my blog posts. Bearing in mind I’m switching to a new web host, I reached this post in search of a solution and the part about changing your old server path in the upload function gave me some hope.

    The thing is I don’t upload images within WP. I search my sql database and there are only less than 5 instances where my old server path occurs, so I change them anyway but not effective. There are hundreds more in commentmeta section but I doubt there’s any relevance. I believe just a few more tweaks should resolve this issue. Grateful for your help, thanks.

    The blog is at http://www.internetmasterycenter.com/blog Click on the post and page links and you would get 404 messages. If anyone has a solution, please e-mail me at at support@internetmasterycenter.com Thank you!

  106. This is one of the best tutorial available online for moving WP to a new server. Each time whenever i required to move my blogs to new server, I start my bookmarks bar to the url. Thanks a lot for such wonderful and complete article.

  107. Thanks for the very thorough post. It and it worked great.
    I did have to rename my index.html so that it wouldn’t overide the index.php file from wordpress in order to see my homepage. However, I have another issue.
    All of my subpages (other than the home page) aren’t showing up. Getting “Error 404 Not Found” etc. Something with the permalinks or htaccess? Not sure…
    Thanks.

  108. This is exactly what I’m looking for. Step-by-step tutorial <3 Thank you so much!! This article really helps alot for me who needs help to restore the old database to the new server. :)

  109. great tutorial, screenshoot very helpful for me to practice. but i’d like to ask, during install new wordpress on new host, do we need copy paste the all file wordpress on old hosting server to new server?
    i have problem during moving my hosting, after moving, the new website telling me to install wordpress again

  110. Question about versions will there be a problem transfering the db if I have an old WordPress version to a newer WordPress version ie most current one.

  111. Will this work the same moving from a Windows server to a new host using a linux server? Same domains just new home.

    Thanks so much for this. I have learned a lot from you on and was able to move a site to new server with new domain and this is my new challenge.

    Let me know what i need to do if it’s different moving to Linux.

    Cheers!

  112. Great, great tutorial! Thank you so much! Really appreciated, worked so smoothly! Never thought I could do this myself. The only thing I was confused about was what to fill in under upload path but that solved itself once the saite was up and running.
    THANK YOU!

  113. thanks for the great walkthrough.

    Just thought I’d mention that I’m about to launch my new service at migrately.com which will help those folks who can’t or don’t want to move their site themselves.

    The service will focus purely on moving WordPress websites from one host to another. Nothing more or less than that. It will also be priced competitively!

    Launching soon, but there is a sign-up page at the above address where folks can register for more information.

    Thanks again for the post!

  114. THANK YOU THANK YOU THANK YOU. I bow before your WordPress greatness. Permalinks took care of themselves once I opened the permalink settings screen- didn’t have to do anything except open it.

  115. Hi, every tutorial I’ve read says they will explain step by step but none have so far. I am completely new to all of this and when someone says, “download all of your files from your current host” yet don’t explain step by step how to do this, it then becomes impossible for me to successfully complete the task. Is there really such a thing as a step by step tutorial that doesn’t gloss over anything?

  116. Hi Guys,

    Thanks for this wonderful and very informative post that you for moving a WordPress Website!!!

    I’ve done this method several times before for moving or migrating my sites to new host or directories, but now am using Backup Buddy Plugin for moving / migrating my sites as it’s very easy to use…

    I also found this quick video tutorial and wanted to share this to you on how to move wordpress site using backup buddy so that anyone could have a quick glance and knowledge on how to use Backup Buddy plugin!!

Leave a Reply

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

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>