Support » Networking WordPress » Migrating sites to a new server – problem with subdomains

  • Resolved johneer

    (@johneer)


    Hello,
    I’d appreciate any help with the following.
    I am running a website, let’s say, http://www.example.com
    The website has to be migrated to a new server and I decided to use the opportunity to migrate it into a fresh multisite installation of WP and add another site, so the final result should be http://www.example.com and xyz.example.com.

    I currently have two subdomains (test.example.com and xyz.example.com) running on the new server, while the original site is still running on the old one, however, when I install multisite wordpress on test.example.com, I am only able to create sites a level down – xyz.test.example.com. What I need is to create xyz.example.com.
    I thought I would migrate the old site to test.example.com and the new site to xyz.example.com and then only change some settings, so that test.example.com becomes http://www.example.com. Is anything such possible? How can I do it? I don’t want to redirect the DNS settings to the new server before everything works.

    Hope somebody understands my problem from my explanation 🙂
    Thanks a lot.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Set your New subsite’s A record in DNS as you wish… Don’t try it yet! And don’t monkey with the root domain to the server itself or clobber any other DNS record there.

    Go to Dashboard –> My Sites –> Network Admin–> Sites –> Select the site you need to answer as subdomain.example (whatever you set that A record As) and hit edit.

    Change the Site URL under info and save to whatever that A record is. Double check that the site url and home url match under settings. Save if you have to edit.

    Now you can try it… should work just fine.

    Thread Starter johneer

    (@johneer)

    Thanks, that helped. I only needed to reinstall WP as I first installed in the site the address of which needs to be changed and that is not possible. When I now installed on the subdomain that will stay as is, it works and I was able to create a new site where I can change the address. I’m now having a problem with logging in the new site but that’s a separate thread.
    Thanks

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Migrating sites to a new server – problem with subdomains’ is closed to new replies.