Support » Fixing WordPress » Cloning my website

  • I need advice – I would like to clone my complete wordpress website and move it to another server – What is the best plug in for this.

    Regards Gerald

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hristo Pandjarov

    (@hristo-sg)

    SiteGround Representative

    Hi Gerald,

    Basically there are three steps you need to complete to fully migrate your website to a different web server:

    Step 1: Copy your files and folders. Simply make a zip file with all the content of your WordPress folder – it’s easier to transfer one big file than thousands of small ones. Move that file to the new server and extract it into the desired folder.

    Step 2: Backup your WordPress database. You can use tools like phpMyAdmin in order to make a backup of your WordPress database. If you experience issues with that, contact the support team of your current hosting company – they should provide you with a .sql file. Then, create a new database on the new server, username for it and grant privileges to that username for the newly created database. Finally, import the dump (your .sql) file in it.

    Step 3: Reconfigure WordPress. There are two things that you need to reconfigure. The first one is your database configuration. Often database names and users change because your new account has new name, or simply because you’re using a different password. You need to edit the wp-config.php file in the root WordPress folder and make the necessary changes in it – they are pretty straight forward, you need to edit the DB name, username and the password for it:

    define('DB_NAME', 'user_wrdp1');
    /** MySQL database username */
    define('DB_USER', 'user_wrdp1');
    /** MySQL database password */
    define('DB_PASSWORD', 'password');

    Finally, if you’re changing the URL of your website, you need to add these lines to the functions.php file of your theme, login to the WordPress admin backend and remove them:

    update_option('siteurl','http://www.new-site-address.com');
    update_option('home','http://www.new-site-address.com');

    That should do the trick 🙂

    Are both your domains hosted by the same company?

    Call then and ask them to do this for you. It’s simple, fast and safes you bandwidth 😉

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Cloning my website’ is closed to new replies.