WordPress.org

Ready to get started?Download WordPress

Forums

Switch from sub-domain to primary domain (5 posts)

  1. smittysmitty
    Member
    Posted 3 years ago #

    Hopefully this is a simple question..

    I am building a wp site for a school. They currently have a live site at http://school.org on their existing host server that will remain live until the new site is ready. We are building their new wp (3.0) site on a new host server and have set up a sub-domain http://test.school.org with their registrar for this test phase that points to this new server. The test site is built in the root of this new server and is almost ready to go live.

    When ready we will be re-pointing their primary domain to this new server IP address, but I am uncertain what steps need to be taken in wp to switch the domain of the site from test.school.org to school.org. Again - the site files do not need to move from one server to another, or move from directory to root, they will remain where they are in the root of the new server - just need to switch the domain and re-point from existing server IP to the new server IP.

    Can I simply change the WordPress address and site address in General Settings? If yes, I'm assuming I'd re-point the domain to the new IP address first then log into the new wp site and make the URL switches in General Settings.

    Or - do I need to edit wp-config and find/change all references to the existing sub-domain test.school.org in the database to the new, primary school.org?

    (NOTE: Earlier in this project I, successfully, migrated the test site from our test server at http://www.mysite.com/school - following steps of backup wp and database files/moving files/reconfiguring wp-config/replacing instances of mysite.com/school to test.school.org/etc. Just wondering if I need to go through all of this again, or if the simple General Settings switch will do the trick?

    Please advise. Thank you for your help and patience.

  2. esmi
    Forum Moderator
    Posted 3 years ago #

  3. smittysmitty
    Member
    Posted 3 years ago #

    Thanks for the post. So...are you telling me its not a simple General Settings switch and re-pointing? There's more to it?

  4. esmi
    Forum Moderator
    Posted 3 years ago #

    Yes - there's more to it. :-)

  5. smittysmitty
    Member
    Posted 3 years ago #

    Thanks.

Topic Closed

This topic has been closed to new replies.

About this Topic