WordPress.org

Ready to get started?Download WordPress

Forums

Converting subfolder to subdomain installation (9 posts)

  1. danhgilmore
    Member
    Posted 1 year ago #

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

    http://www.domain.tld/sitename/

    (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:

    http://blogs.domain.tld

    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.

  2. Eric Mann
    Member
    Posted 1 year ago #

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

  3. danhgilmore
    Member
    Posted 1 year ago #

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

  4. Curtiss Grymala
    Member
    Posted 1 year ago #

    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 http://www.example.org to subdomain.example.org, 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 http://www.example.org/subsite to subsite.example.org)? 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.

  5. Eric Mann
    Member
    Posted 1 year ago #

    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).

  6. danhgilmore
    Member
    Posted 1 year ago #

    Curtiss - I'm looking for the former.

  7. danhgilmore
    Member
    Posted 1 year ago #

    Heh, I've done that a million times when importing my production DB to dev environment :)

  8. Curtiss Grymala
    Member
    Posted 1 year ago #

    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.

  9. Now that I'm at a big girl computer....

    Just moving from example.com to blogs.example.com isn't all that difficult, just beware the serialized data.

    http://halfelf.org/2012/moving-wordpress-multisite/ - check the comments. Thre's a cool script for that.

Topic Closed

This topic has been closed to new replies.

About this Topic