Title: migration
Last modified: August 20, 2016

---

# migration

 *  [djdancer](https://wordpress.org/support/users/djdancer/)
 * (@djdancer)
 * [13 years, 6 months ago](https://wordpress.org/support/topic/migration-3/)
 * Hello. A couple of weeks ago I migrated a site over. It was originally installed
   and built on the same site only in a webtest directory. Now it is at the root.
   I have a problem that was resolved by editing the old site directory from the.
   css. It worked fine. It kept resolving to the webtest url directory.
 * Now it is back to resolving to the old webtest again after a couple of weeks.
   I had turned it over to the client and there have been changes made to the site
   itself.
 * If I go into WordPress/General I see the WordPress Address (URL)
    Site Address(
   URL) resolving to the webtest again.
 * How can I fix this without losing all of the changes that the client made since
   handing over the site?

Viewing 15 replies - 1 through 15 (of 27 total)

1 [2](https://wordpress.org/support/topic/migration-3/page/2/?output_format=md) 
[→](https://wordpress.org/support/topic/migration-3/page/2/?output_format=md)

 *  [fonglh](https://wordpress.org/support/users/fonglh/)
 * (@fonglh)
 * [13 years, 6 months ago](https://wordpress.org/support/topic/migration-3/#post-3089627)
 * Review [http://codex.wordpress.org/Moving_WordPress](http://codex.wordpress.org/Moving_WordPress)
   and [http://codex.wordpress.org/Changing_The_Site_URL](http://codex.wordpress.org/Changing_The_Site_URL)
 *  Thread Starter [djdancer](https://wordpress.org/support/users/djdancer/)
 * (@djdancer)
 * [13 years, 6 months ago](https://wordpress.org/support/topic/migration-3/#post-3089632)
 * Okay. I think I need a little more guidance than this. This is my first WP site
   and I can’t lose any of the changes that they made.
 * – Created a new instance of WordPress in the root of the site.
    – I created a
   new database then migrated all items except the old database into the new site.–
   It was somehow still looking at the old site so the styles.css was modified to
   look at the new url. It was fine. I’m not sure whether after handing it over 
   the guy made a mistake and restored from a backup. I should have deleted the 
   old backups but overlooked it.
 * Now if I go to Admin/settings/general I see the old site listed again. Is there
   a way that I can change the url in there and not lose any of the changes they
   have made since handing it over?
    Thank you!
 *  Thread Starter [djdancer](https://wordpress.org/support/users/djdancer/)
 * (@djdancer)
 * [13 years, 6 months ago](https://wordpress.org/support/topic/migration-3/#post-3089661)
 * I am very worried about losing their changes. I did read through the articles
   and just need some guidance on doing this so I don’t mess it up. It has to be
   seemless to them when I do it.
 *  [govpatel](https://wordpress.org/support/users/govpatel/)
 * (@govpatel)
 * [13 years, 6 months ago](https://wordpress.org/support/topic/migration-3/#post-3089689)
 * All your articles and settings are saved in database and all your your themes,
   plugins and uploads are saved in wp-content folder.
 * So as long as you keep backup of database and wp-content folder you should be
   fine.
 * >  It was originally installed and built on the same site only in a webtest directory.
   > Now it is at the root. I have a problem that was resolved by editing the old
   > site directory from the .css. It worked fine. It kept resolving to the webtest
   > url directory.
 * Now why did did you change css link as that should work from your theme
 * Any if you have all wordpress files and folders in root then you will be safe
   change the urls to domain name where as if you have wordpress files and folders
   in webtest directory then you can move to root or use wordpress from directory
 *  Thread Starter [djdancer](https://wordpress.org/support/users/djdancer/)
 * (@djdancer)
 * [13 years, 6 months ago](https://wordpress.org/support/topic/migration-3/#post-3089693)
 * Thanks govpatel. I am wondering if all of the changes that have made are also
   in the webtest directory. There is a problem that I just noticed…?? I renamed
   the webtest directory to webtestold when it was resolving to the right urls. 
   I’m not sure what happened or if they have restored from backup or what. I just
   know that they are resolving to a directory that doesn’t exist. [http://www.wesharehope.org](http://www.wesharehope.org)
   The home page resolves okay but then when I click on any tab it resolves to [http://www.wesharehope.org.php5-1.dfw1-2.websitetestlink.com/&#8230](http://www.wesharehope.org.php5-1.dfw1-2.websitetestlink.com/&#8230);
 *  [govpatel](https://wordpress.org/support/users/govpatel/)
 * (@govpatel)
 * [13 years, 6 months ago](https://wordpress.org/support/topic/migration-3/#post-3089701)
 * Where exactly are your wordpress files and folder are they in root or in directory
   as I see this urls in your source code
    [http://www.wesharehope.org.php5-1.dfw1-2.websitetestlink.com](http://www.wesharehope.org.php5-1.dfw1-2.websitetestlink.com)
 * so where does php5-1.dfw1-2.websitetestlink.com
    this come from
 * What do you have in Settings>>>General
 *  Thread Starter [djdancer](https://wordpress.org/support/users/djdancer/)
 * (@djdancer)
 * [13 years, 6 months ago](https://wordpress.org/support/topic/migration-3/#post-3089713)
 * I believe they are in the root. I don’t know what .php5-1.dfw1-2.websitetestlink.
   com is?? They were originally installed in WPInstall directory then migrated 
   to a site with a brand new WP database. The old database was omitted.
 * In Settings>>>General I have:
 * WordPress Address (URL) [http://www.wesharehope.org.php5-1.dfw1-2.websitetestlink.com](http://www.wesharehope.org.php5-1.dfw1-2.websitetestlink.com)
 * Site Address (URL)
    [http://www.wesharehope.org.php5-1.dfw1-2.websitetestlink.com](http://www.wesharehope.org.php5-1.dfw1-2.websitetestlink.com)
 * I have no idea where these settings are coming from.
 *  [fonglh](https://wordpress.org/support/users/fonglh/)
 * (@fonglh)
 * [13 years, 6 months ago](https://wordpress.org/support/topic/migration-3/#post-3089714)
 * The settings are coming from the database the wp-config.php file is pointing 
   to.
 *  Thread Starter [djdancer](https://wordpress.org/support/users/djdancer/)
 * (@djdancer)
 * [13 years, 6 months ago](https://wordpress.org/support/topic/migration-3/#post-3089715)
 * How do I go about changing this and will I lose any data?
    Thanks!
 *  Thread Starter [djdancer](https://wordpress.org/support/users/djdancer/)
 * (@djdancer)
 * [13 years, 6 months ago](https://wordpress.org/support/topic/migration-3/#post-3089716)
 * I think I have a pretty serious issue but can’t go changing everything now. I
   see that someone has possible restored to the wrong database. I’m not sure but
   in wp-config.php I see it is pointing to the old database. I don’t think that’s
   such a big deal in that there was nothing wrong with the old database. I need
   to know how to change the url to the actual root without losing any data that
   they have changed.
 * I handed this site over to the client and they were to have Admin access. I have
   now downgraded them to Editor for the time being.
 *  [fonglh](https://wordpress.org/support/users/fonglh/)
 * (@fonglh)
 * [13 years, 6 months ago](https://wordpress.org/support/topic/migration-3/#post-3089717)
 * Where is the data they changed? In the old or new database?
 * To change the site URL read the link I posted in my first reply.
 *  [govpatel](https://wordpress.org/support/users/govpatel/)
 * (@govpatel)
 * [13 years, 6 months ago](https://wordpress.org/support/topic/migration-3/#post-3089720)
 * If you have your wordpress files and folders in root then you can change urls
   in settings >>>>General to be just domain name if that is your host has configured
   your domain name to point your root.
 * You will need to reset your permalinks if used
 *  Thread Starter [djdancer](https://wordpress.org/support/users/djdancer/)
 * (@djdancer)
 * [13 years, 6 months ago](https://wordpress.org/support/topic/migration-3/#post-3089722)
 * Okay now I kind of understand. I went in and looked where my host database itself
   is and it says: Online Manager [https://mysql.dfw1-2.websitesettings.com](https://mysql.dfw1-2.websitesettings.com)
 * Is this the way my url is supposed to look? OR could it be configured so that
   all urls point to root instead of the hosting??
 * I’m also a bit confused by what I see in the wp-config.php points to the first
   database. When if fact I backed everything up after a successful migration and
   the backup has the name and credentials of the second database.
 *  [fonglh](https://wordpress.org/support/users/fonglh/)
 * (@fonglh)
 * [13 years, 6 months ago](https://wordpress.org/support/topic/migration-3/#post-3089725)
 * Unless you’re marketing your site as mysql.dfw1-2.websitesettings.com, the URL
   is supposed to be the domain name you’ve bought, and you need to point your domain
   name to your host’s webservers.
 * Point it to whichever database has the data you want and just change the URL 
   settings.
 *  Thread Starter [djdancer](https://wordpress.org/support/users/djdancer/)
 * (@djdancer)
 * [13 years, 6 months ago](https://wordpress.org/support/topic/migration-3/#post-3089726)
 * Do I just go in and change it under settings>>>general or do I change it at the
   online manager. I don’t see the websitesettings.com anywhere in the we-config.
   php. I just see that it’s pointing to the first database that was created. That
   doesn’t really matter.
 * I do see:
    MySQL settings – You can get this info from your web host ** // /**
   The name of the database for WordPress */ define(‘DB_NAME’, ‘623913_WSH1’);
 * /** MySQL database username */
    define(‘DB_USER’, ‘SQLADMIN’ changed for obvious
   reason);
 * /** MySQL database password */
    define(‘DB_PASSWORD’, ‘dbpassword’ (changed for
   obvious reason);
 * /** MySQL hostname */ for
    define(‘DB_HOST’, ‘mysql50-113.wc2.dfw1.stabletransit.
   com’);
 * Thank you!

Viewing 15 replies - 1 through 15 (of 27 total)

1 [2](https://wordpress.org/support/topic/migration-3/page/2/?output_format=md) 
[→](https://wordpress.org/support/topic/migration-3/page/2/?output_format=md)

The topic ‘migration’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 27 replies
 * 3 participants
 * Last reply from: [djdancer](https://wordpress.org/support/users/djdancer/)
 * Last activity: [13 years, 6 months ago](https://wordpress.org/support/topic/migration-3/page/2/#post-3089811)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
