Migrating, moving, cloning or copying wordpress website to a subdomain tutorial!


For any questions or consultation, contact me via Codementor, click here

  1. Create subdomain
  1. Step 1: Click on Cpanel
    2016-10-20 13_42_22-cPanel X - Main.png
  2. Step 2: Create Subdomain

2016-10-20 13_45_20-cPanel X - Subdomains.png
Your subdomain will be
TEST.EXAMPLE.COM replace EXAMPLE.COM with your website’s domain!

It will create folder named TEST in your public_html, if you have named it SOMETHING.EXAMPLE.COM folder thats created in public_html would be named SOMETHING

  1. Crate database
  1. Click on database wizard
    screenshot-cccavic.org.au 2082-2016-10-20-13-40-27.png
  2. Follow self-explanatory WIZARD and WRITE DOWN PASSWORDS AND USERNAMES TO TXT FILE OR ON PAPER
  3. Grant all permissions to WP user (actually you don’t need all, but since you are obviously newbie, just click ALL PRIVILEGES)
    screenshot-cccavic.org.au 2082-2016-10-20-14-02-44.png

        

  1. Move wordpress files

  1. Select all filex, except TEST folder (replace with your subdimain’s folder name)
  2. Right click and choose Copy

Add /test or whatever your subdomain’s directory is:

screenshot-cccavic.org.au 2082-2016-10-20-13-53-51.png

Click Copy Files

4. Edit Database file (follow the image below:)

screenshot-cccavic.org.au 2082-2016-10-20-13-55-56.png

5. Enter database info that you saved from step 1

screenshot-cccavic.org.au 2082-2016-10-20-13-58-49.png

6. Move database

  1. Click on phpMyAdmin
  2. Export database (old wordpress database from your website that we are moving)
    screenshot-cccavic.org.au 2082-2016-10-20-14-12-31.png
  3. Just click GO it will DOWNLOAD FILE TO YOUR COMPUTER
  4. Import database to database we created at step 2
    screenshot-cccavic.org.au 2082-2016-10-20-14-27-14.png
  5. Choose file from your computer and click GO
  6. EDIT WORDPRESS WEBSITE NAME

screenshot-cccavic.org.au 2082-2016-10-20-14-39-21.png

REPLACE http://example.com with http://test.example.com or whatever your new website or subdomain is

7. Open http://test.example.com  with your favourite browser!


For any questions or consultation, contact me via Codementor, click here