Forums

Transfer to a New Host ; Same Domain Name (8 posts)

  1. bg2326
    Member
    Posted 5 years ago #

    I am switching hosts, but keeping the same web address. According to codex, all I need to do is update the wp-config.php file, however, my new host doesn't have WP installed. If I install it at the new host, won't it overwrite my files and settings?

  2. moshu
    Member
    Posted 5 years ago #

    It shouldn't be your host that installs it - it is you :)

    Have backups of your old install, which means 2 (two) things!!!
    1. WP files
    2. Database
    The database is the MOST important, everything is in there: your content (posts, pages, comments AND settings!)
    From the files, nothing really is important - except your customized theme files (if any) and the wp-config.
    However, even the wp-config has to be changed to reflect the info referring to your new database.
    I assume the 4 pieces of info needed in the wp-config file (db name, db user, pw, host) will NOT be the same as on the old host.

  3. bg2326
    Member
    Posted 5 years ago #

    Thanks for your reply. My previous hosting company came with WP already installed on the site. I have installed it at the new location. And as expected, my database content was gone. Good thing it was backed up :)

  4. moshu
    Member
    Posted 5 years ago #

    When you make a new install - it has an empty database. Nothing is gone.
    AFTER that you restore the backed up db content.

    If you proceed the other way around (1. restore; 2. install) of course, it will over-write the existing database :)

    Common sense...

  5. bg2326
    Member
    Posted 5 years ago #

    Sorry, I should have said "empty" instead of "gone". Thanks again for your help.

  6. MichaelH
    Volunteer
    Posted 5 years ago #

  7. crashcodes22
    Member
    Posted 5 years ago #

    when transferring to a new host (but same domain), will my site be unavailable? and if so, for how long?

  8. charle97
    Member
    Posted 5 years ago #

    probably. depends on how fast your domain name propagates.

Topic Closed

This topic has been closed to new replies.

About this Topic