Forums

Transfer of WordPress site - url (4 posts)

  1. hutchinsonDesign
    Member
    Posted 4 months ago #

    Hi, I am currently moving a wordpress site to a new location, and trying to minimize downtime on the current page.

    Old server (current): http://www.campbelltontigers.ca
    New server: http://www.campbelltontigers.ca.c11.previewyoursite.com

    Actions performed:

    - Exported database from current server
    - Imported into new server

    The new location seems to be working correctly, minus some fixes I'll make via the dashboard.

    To access the dashboard in the new location, I'm assuming I'll need to change the site url, however how will that affect the live site?

    My question is, what would be the next steps in the transfer of the site?

    Thank you

  2. Old server (current): http://www.campbelltontigers.ca
    New server: http://www.campbelltontigers.ca.c11.previewyoursite.com

    To access the dashboard in the new location, I'm assuming I'll need to change the site url, however how will that affect the live site?

    These are separate installations with separate databases and files right? The IP addresses are different so I'm guessing so. Changing the new server site URL will not effect the existing server.

    When you are ready to cut over, update the DNS so that http://www.campbelltontigers.ca points to the IP address of http://www.campbelltontigers.ca.c11.previewyoursite.com and just switch your site URL on the new installation from the preview URL to the real one.

  3. hutchinsonDesign
    Member
    Posted 4 months ago #

    Thanks Jan, however when I login to the new server admin, I am redirected to the campbelltontigers.ca dashboard.

  4. Thanks Jan, however when I login to the new server admin, I am redirected to the campbelltontigers.ca dashboard.

    Yes, and that's right too. The site URL is pointing there after all in your restored database.

    Update the preview version with the temporary site URL and hard code the option in wp-config.php this way

    define('WP_HOME','http://www.campbelltontigers.ca.c11.previewyoursite.com');
    define('WP_SITEURL','http://www.campbelltontigers.ca.c11.previewyoursite.com');

    That will let you login to the preview version with that URL. Once the DNS is updated, remove those two lines in wp-config.php and your database settings for those options will take over.

    http://codex.wordpress.org/Changing_The_Site_URL

Reply

You must log in to post.

About this Topic