Step by step tutorial moving wordpress site to new domain and server

Mostly all WordPress developers create websites on localhost or subfolder on a server before going to live server. Today in this tutorial we learn step by step how to move or migrate the WordPress website form test server to LIVE OR PRODUCTION server like localhost to example.com domain and server.

Create the backup for existing website:

    1. Manually: If you have technical knowledge about the server and already have a live site on the server. you should create an old backup folder and shift all the folders into it compress with the help of Cpanel and download on PC. After that take MYSQL database back up with help of phpmyadmin. 
    2. Back up with plugin: If you have not technical knowledge you can use WordPress plugins to create backup time to time for your website back up. you can find many of plugins on the internet. For example:
      1. All in One WP Migration
      2. UpdraftPlus WordPress Backup
      3. WP Migrate DB
  1. Update wp folders, files, and MySql Database:

    Now upload your work with help of Cpanel or FTP as a zip folder and extract it to the root folder.  Now you can see your file structure like this.

    After that import your new database with the help of PHPMyAdmin.

  2. Manually Updating the WordPress config file, Home URL and Site URL:

    Now turn for configuring WordPress files with new database and site URL.

    1. Edit your wp-config.php and update database details like Database name, DB Username, DB Password and Host Name. Follow this code
    2. Update siteurl and home URL in wp_options table
  3. Updating Permalinks

    Now you can check your website on the browser. you can see your homepage but many times other links not working so I share you little steps to fix this bug follow these steps:

    1. Go to wp-admin->Settings->Permalinks
    2. Now for a regenerate .htaccess file set default setting and save
    3. Now check again your website it is working with default query string URLs
    4. If you want SEO friendly URLs you can set it according to your needs
  4. Thanks for reading

    If you are facing any problem with migrating your website from one server to another contact me feel free or comment below this is my pleasure if I can help you. Thanks for reading.

Add a Comment

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