Support » Networking WordPress » Converting subfolder to subdomain installation

  • danhgilmore


    I have a subfolder installation of WordPress Multisite with thousands of users/sites. The URLs are formatted like this:


    (We have to hack it and force WordPress to use http://WWW…long story)

    Our customer wants to change the installation to subdomain, so the format would be:


    My questions: Would the site name come after the TLD, or does a subdomain installation require the sitename be the subdomain?

    I know that going from subfolder to subdomain will be a major pain. I hope I was able to describe my problem with enough detail.

Viewing 8 replies - 1 through 8 (of 8 total)
  • Eric Mann


    So you want to change http://www.domain.tld/sitename to http://blogs.domain.tld/sitename or http://sitename.blogs.domain.tld?



    Eric – http://blogs.domain.tld/sitename is the desired result

    I’ve been watching this conversation on Twitter, and I’m a little confused as to what you’re asking.

    Are you really just wanting to move your site from to, leaving all of your sites as subdirectories; or are you looking to migrate all of your subdirectory sites to become subdomain sites instead (e.g. move to Or, as it seemed to be suggested on Twitter, are you looking for some sort of combination between multiple subdomains and multiple subdirectories?

    If the former, it’s really simple; if either of the latter, it’s a bit more complicated.

    EDIT – Nevermind, it looks like Eric asked the same question and already got an answer.

    Eric Mann


    In that case, you’re not changing a subfolder installation to a subdomain installation, you’re just moving the domain. It’ll be a little involved, but you’ll need to reset the siteurl and home settings for each site on the network (and can probably do this with a search-and-replace in SQL).



    Curtiss – I’m looking for the former.



    Heh, I’ve done that a million times when importing my production DB to dev environment 🙂

    That’s exactly what you’re doing, Dan; it’s just moving production to a different production, instead of dev => production.

    Just watch out for any serialized data.

    Moderator Ipstenu (Mika Epstein)


    🏳️‍🌈 Halfelf Rogue & Plugin Review Team Rep

    Now that I’m at a big girl computer….

    Just moving from to isn’t all that difficult, just beware the serialized data. – check the comments. Thre’s a cool script for that.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Converting subfolder to subdomain installation’ is closed to new replies.