WordPress.org

Ready to get started?Download WordPress

Forums

Migrating WordPress - Is It Really That Easy? (8 posts)

  1. metaphiz
    Member
    Posted 2 years ago #

    A lot is riding on this blog (since it's successful because WordPress rocks!), so I just want to confirm the procedure I found on the site for moving WordPress as we migrate.

    We need to move WordPress to a staging directory within the same hosting environment. When it goes live, the URL will be the same and the datasource will be the same. This article says it's as simple as backing up the database and copying the main blog folder to the new location. Is it really that easy?

    Here's the article I referring to:
    http://codex.wordpress.org/Moving_WordPress

    Also, please confirm that for testing in the new location, we need only change "siteurl" and "home" in the database table "wp_options" to the new URL.

  2. esmi
    Theme Diva & Forum Moderator
    Posted 2 years ago #

    That document is still current and should contain everything you need. As for the urls, you state in your post that that the url will be the same. So why are you looking at changing it?

  3. metaphiz
    Member
    Posted 2 years ago #

    We're doing a code update across our sites. I have all the new pages in a testing directory. I want to point our domain to the testing directory when we go live. But our WordPress directory (http://ourdomain/blog/) is in the root. After I point the domain to the testing directory, the root will be one level up.

    That's why I'm a little uncertain about the article. It says "If database and URL remains the same, you can move by just copying your files and database." But we don't have a different datasource. The blog is staying on the same server and we can access the database from any folder on our account. So, I would think that all I have to do is copy our WordPress folder to the new directory so that when we go live, everything will work (the blog folder will still be located one level down from the root). Is this true? Or will moving the files to a different directory cause problems?

  4. esmi
    Theme Diva & Forum Moderator
    Posted 2 years ago #

    Will the WordPress files & folders be in the same (relative) folder after the move?

  5. metaphiz
    Member
    Posted 2 years ago #

    Yes

  6. esmi
    Theme Diva & Forum Moderator
    Posted 2 years ago #

    Then, if I understand you correctly, you shouldn't have to change any urls. That will be handled by the domain name changes at your end.

    You mentioned that you were doing a code update. If this a core WordPress update?

  7. metaphiz
    Member
    Posted 2 years ago #

    No, it's not a core code update. It's update on code for our custom designed sites.

    If you don't understand what I'm asking, please let me know. I know it's confusing ;) I REALLY appreciate your help, but I want to make sure I'm doing the right thing because if this blog gets screwed up, my boss will have my neck!

    The final URL after the migration will be http://ourdomain/blog. The URL before the migration is http://ourdomain/blog. The datasource is the same. Do I just have to copy over the folders and repoint the site? Can it possibly harm the blog to have two sets of templates operating at the same time? I may have to switch back to the old site for a while during testing.

    I'm fine with it if it doesn't work and generates errors. It's worth a try. But if it damages the database, I'm doomed. Have you done these types of migrations before?

    THANKS!!!!

  8. esmi
    Theme Diva & Forum Moderator
    Posted 2 years ago #

    Do I just have to copy over the folders and repoint the site?

    Yes.

    Can it possibly harm the blog to have two sets of templates operating at the same time?

    As soon as you switch the domain over, you won't be able to access the old site. If you want to run the two sites side-by-side, then one of them will need to be a completely separate install with its own database (or db table prefix), wp-config.php file and site urls. If it was me, I'd be looking at running the newest version on a temporary url during the testing phase. Then I'd switch the domain over and change the site urls - possibly via Changing_The_Site_URL.

Topic Closed

This topic has been closed to new replies.

About this Topic