Title: Migration problems
Last modified: August 21, 2016

---

# Migration problems

 *  Resolved [hernandezmarzal](https://wordpress.org/support/users/hernandezmarzal/)
 * (@hernandezmarzal)
 * [12 years, 5 months ago](https://wordpress.org/support/topic/migration-problems-7/)
 * _[Moderator note: Topic title de-capped. Please do not shout at us.]_
 * Hello, i have 2 wordpress websites.
    Lets say A) Hosting A [http://www.site-a.com](http://www.site-a.com)
   user-a, password a
 * B) Hosting B
    [http://www.site-b.com](http://www.site-b.com) user-b, password
   b
 * I trited to host my site B) inside a
    new directory into hosting A, like : [http://www.site-a.com/wordpress-site-b/](http://www.site-a.com/wordpress-site-b/)
 * I didnt know how to do it, so i just backup and copied the files
    from B and 
   uploaded them to : [http://www.site-a.com/wordpress-site-b/](http://www.site-a.com/wordpress-site-b/)(
   and access later to content with a redirect domain).
 * I setup a new mysql database for [http://www.site-a.com/wordpress-site-b/](http://www.site-a.com/wordpress-site-b/)
   
   and also, imported the original data from B site.
 * It seemed this was going to work,
    but when i made login into my wordpress admin
   from: [http://www.site-a.com/wordpress-site-b/wp-login.php](http://www.site-a.com/wordpress-site-b/wp-login.php)
 * …it worked at first time, but i did a big big mistake:
    at the wordpress settings
   i changed the main url field, and i changed the root path name pointing to [http://www.site-a.com](http://www.site-a.com)
 * Now i have lost my [http://www.site-b.com](http://www.site-b.com)
    because every
   time i try to connect to: [http://www.site-b.com/wp-login.php](http://www.site-b.com/wp-login.php),
 * automatically redirects me to [http://www.site-a.com](http://www.site-a.com)
 * What a mess i did!…
 * I dont know if i explained well the situation..
    Any help? Thanks in advance…

Viewing 2 replies - 1 through 2 (of 2 total)

 *  [mvieiras](https://wordpress.org/support/users/mvieiras/)
 * (@mvieiras)
 * [12 years, 5 months ago](https://wordpress.org/support/topic/migration-problems-7/#post-4361295)
 * hernandezmarzal,
 * Let me see if I could understand it..
 * You’ll need to access your site-b mysql databse, and in the table wp_options 
   you’ll see at the first line the option_name siteurl.
    Now in that field you’ll
   have to change it from site-a to site-b.
 * I hope that it was what you’re in need..
 * –
    mvieiras
 *  Thread Starter [hernandezmarzal](https://wordpress.org/support/users/hernandezmarzal/)
 * (@hernandezmarzal)
 * [12 years, 5 months ago](https://wordpress.org/support/topic/migration-problems-7/#post-4361297)
 * Thanks! that was the solution i needed 😀

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Migration problems’ is closed to new replies.

## Tags

 * [login](https://wordpress.org/support/topic-tag/login/)
 * [wordpress site](https://wordpress.org/support/topic-tag/wordpress-site/)

 * In: [Installing WordPress](https://wordpress.org/support/forum/installation/)
 * 2 replies
 * 2 participants
 * Last reply from: [hernandezmarzal](https://wordpress.org/support/users/hernandezmarzal/)
 * Last activity: [12 years, 5 months ago](https://wordpress.org/support/topic/migration-problems-7/#post-4361297)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
