WordPress.org

Ready to get started?Download WordPress

Forums

Moving WP3.3 MS to New Server/Domain, Need to Use Subfolder! (5 posts)

  1. ArmandoPenblade
    Member
    Posted 1 year ago #

    TL;DR: Existing 3.3.2 WP Multisite on Server A, Domain X, needs to move to Server B, Domain Y (in a SUBFOLDER in new domain). Existing wp-config indicates it is NOT a subdomain install. Is there any combination of upgrading the install to 3.5 and/or moving it between servers that will enable it to operate in the new subfolder?

    -------

    From what I understand, WP3.5 is the first version of WP Multi-Site to support a "subfolder" install. I am curious if I can even do this move, therefore.

    WP3.3.2 is installed at sub.DOMAIN.com/ currently. We need to move it over to http://www.NEWDOMAIN.org/sub/sub/ while leaving posts, users, and content intact.

    Before I knew about the pre-3.5 subfolder limitation, I just moved the installation and the database over, updated the address everywhere (using a script that respect serialized PHP where necessary in the DB), and tried to get .htaccess and wp-config.php pointing in the right spot. However, this has thus far failed, I assume due to the 3.3 inability to install MS to a subfolder.

    I understand it's not possible to go from subdomain install to subfolder (and the old address of sub.DOMAIN.com would make me think it IS a subdomain type install), BUT the wpconfig in place on the old server indicates that it is NOT a subdomain install at present.

    Would it be possible to update WP to 3.5--either automatically on the old server (then move files and DB over again, re-replace the URLs, etc.). . . OR to update the newly moved install "in-place" (copying relevant files from an extracted compressed file, since I can't access wp-admin to perform the auto-update)?

    Or, because subfolder installs were not possible when this was initially setup as multisite, is it simply impossible to move this existing multisite install to a subfolder no matter what I do?

  2. ArmandoPenblade
    Member
    Posted 1 year ago #

    This may additionally be important:

    At present, Drupal is installed at the root of http://www.NEWDOMAIN.com. Whenever I try to access the blogs now (i.e., http://www.NEWDOMAIN.com/blogs/2013/BLOGNAME), it just redirects back to the Drupal page at http://www.NEWDOMAIN.com.

    For reference, here are images of my .htaccess and wp-config.php files in the subfolder. If I need to add rules to the Drupal .htaccess in the root directory, I might need some advice there, because I am not an expert in this--got drafted into it, so to speak :)

    WordPress subfolder htaccess: http://i.imgur.com/zGCO5.png

    WordPress subfolder wpconfig: http://i.imgur.com/Fn6r1.png

    Root directory htaccess part 1: http://i.imgur.com/Vt32i.png

    Root directory htaccess part 2: http://i.imgur.com/wKFml.png

  3. Moving Multisite is a pain in the butt. There's no other way around it :(

    You're moving from domainA.com/ to domainB.com/WordPress?

  4. ArmandoPenblade
    Member
    Posted 1 year ago #

    That is correct.

    In the strictest of terms, the blogs are currently accessible via sub.DOMAINA.com/ (but serverside are located in a /subfolder in the publichtml root, and the wp-config there indicates it is not a subdomain-type install. The individual who performed the original setup agreed it was not subdomain), while they will be moving to http://www.DOMAINB.com/sub/sub2.

    Not sure if that makes a difference :)

  5. From: sub.domainA.com/folder/
    To: http://www.domainB.com/folder/? Or http://www.domainB.com/folder/folder/

    You CAN do this. It's gonna be a mild headache, but I believe if you search/replace the DB with the script mentioned here - http://codex.wordpress.org/Moving_WordPress#Moving_WordPress_Multisite - you should be able to do this.

    However you need to be VERY specific about what you're searching for and that's why I'm being pedantic about your from and to destinations ;) If you can use as close to REAL as possible, and give the URLs of the current main site and the desired main site, I think I can get you started.

Topic Closed

This topic has been closed to new replies.

About this Topic