Forums

[resolved] Problem moving finished site from dev folder to root (5 posts)

  1. katiek648
    Member
    Posted 1 month ago #

    This is my first time working from a dev folder and I've screwed something up. I created my site under http://www.domain.com/dev and directed my subdomain dev.domain.com to that folder. Its finally ready to go live so I wanted to move everything over to the root folder http://www.domain.com.

    Steps I took:
    - back everything up
    - on dev, went in through admin to change WordPress address (URL) and BlogAddress (URL). However, when I saved the page, there was an error and I noticed the the URL had changed already. First mistake...I moved on.
    - Copied everything from /dev/ folder to root folder
    - Tried loading http://www.domain.com and it automatically to me to install.php page asking me to install again. Didn't think I should do this so I found this page: http://codex.wordpress.org/Changing_The_Site_URL
    defined my WP_HOME and WP_SITEURL in wp-config.php
    - That didn't do anything so I decided to go ahead and see if I filed in the instal.php it would work. Did this, but it did in fact load a new wordpress screen and asked me to create a new admin page.

    This is where I am stuck now and I'm not sure what to do.

    I still have a backup of my files and a database backup file I ran from the WP DB Backup plugin earlier.

    Is there any way to fix this issue?
    Dev: http://dev.lonjeviteakombucha.com/
    Root: http://www.lonjeviteakombucha.com/

    Thanks for your help in advance and I promise to learn from my mistakes :)

    Katie

  2. MichaelH
    moderator
    Posted 1 month ago #

    The fact you got a 'new install' says that you didn't really copy your files, at least the wp-config.php, from the original dev folder. A new install would be instituted if the $table_prefix in wp-config.php was different than the original install.

  3. katiek648
    Member
    Posted 1 month ago #

    both my back up and new files list it as
    $table_prefix = 'wp_';

    What do I need to do next? Not sure where to go from here. Thanks!

  4. katiek648
    Member
    Posted 1 month ago #

    Did it do anything to my DB table when I ran the new install.php? Wondering if I need to fix anything in my DB now. I have limited PHP/SQL knowledge by the way so I'm a little unclear of what is going on in the backend.

  5. katiek648
    Member
    Posted 1 month ago #

    Resolved. Thanks!

Reply

You must log in to post.

About this Topic