The MU forums have moved to WordPress.org

Moving WPMU between subdomains (5 posts)

  1. mrtomservo
    Member
    Posted 15 years ago #

    Hello,

    I'm building a site that uses WPMU to manage about five blogs on a corporate website. I built the website in a development area, say, at dev.example.com. Now, I want to move the site to http://www.example.com. The WordPress installation lives in the /blog/ folder.

    The server is a Mac OS X server. I added a new web server with the address http://www.example.com, and pointed it to the very same folder containing the site files for dev.example.com. So no file transfer was necessary, and all permissions are retained, because the files didn't move.

    What I tried to do was first edit each blog through the admin tool, but quickly realized after the first one that it wasn't going to work. I replaced all instances of dev.example.com with http://www.example.com, and once I submitted the changes, the admin tool wouldn't run anymore, immediately redirecting my browser to http://www.example.com/. Poopie.

    So, I fired up my MySQL DB manager, and dumped the contents of the database into a .sql file. Then, I used a text editor to find all instances of dev.example.com and replace them with http://www.example.com.

    Still, when I try and visit http://www.example.com/blog/, it redirects me to http://www.example.com/. Trying a URL for anything living inside WordPress bumps the browser back out to http://www.example.com/.

    (Interestingly, I took the same SQL dump, and restored any and all URLs that I'd changed back to dev.example.com. The site was restored just fine back at dev.example.com, which was a great relief to see that I hadn't permanently damaged something. But http://www.example.com obviously still doesn't work.)

    Did I miss a step? I tried following the instructions here, but to no avail.

    Any help is appreciated. Many thanks!

    (Note that I'm using "example.com" as a placeholder for the actual domain name that I'm using. Derp.)

  2. cclinton
    Member
    Posted 15 years ago #

    I am performing the same step. Any word on how to do this yet? I did find this online but am not sure it is the same with wpmu:
    http://codex.wordpress.org/Changing_The_Site_URL

  3. andrea_r
    Moderator
    Posted 15 years ago #

    Now I admit this is just a stab in the dark here, but I do see one issue.

    "Then, I used a text editor to find all instances of dev.example.com and replace them with http://www.example.com."

    MU strips out the www and I know when you put that in on install, it does wonky things.
    So I'd try it again, but use example.com instead of http://www.example.com.

  4. mrtomservo
    Member
    Posted 15 years ago #

    andrea_r, you're a genius. That's exactly what it was. I went back to the original MySQL dump, found "dev.example.com" and replaced it with just "example.com".

    And voĆ­la, it works, as if by magic.

    THANK YOU SO MUCH for your help! Three cheers for andrea_r!

  5. andrea_r
    Moderator
    Posted 15 years ago #

    Yer welcome. :) That was just the one thing I saw that could cause an issue.

About this Topic

  • Started 15 years ago by mrtomservo
  • Latest reply from andrea_r