Migrating WordPress

This tutorial relates to migrating your WordPress files and database from a local installation to a web server.

This assumes you've installed WordPress locally using instantwp and that you're moving to a web host like Blue Host with cPanel.

You can either:

  • Watch a Slide Show or
  • Watch a Video

Slide Show

Video

This method shows you how to change your site and WordPress url's using the WP Migrate DB plugin before you export your database.

After changing your link url's, its simply a matter of:

  • zipping up your WordPress folder locally
  • creating an addon domain in cPanel if needed
  • uploading your files to your domains root directory on your web server
  • creating a new database and editing the wp-config.php file with your new database connection details
  • importing your database SQL file into your new database using phpMyAdmin

There's different ways to move your files and database from your local setup to your web server.

If you don't use a plugin to change your url's, read this note.

Note: Changing the site and WordPress url's on your local installation will result in your site breaking. Another way to do is, is to change the url's after exporting your database using the search > find > replace all feature using a text editor like notepad++.

Personally, i prefer to change them using the wp migrate db plugin before exporting the database and then use Notepad++ to check all links using the search, find and replace feature.

Useful Resources

  1. Here's 4 ways to change your WordPress site url's and avoid broken links.
  2. 3 ways to move WordPress from a local setup to a web server.
  3. A plugin for changing database url's before migrating.