WordPress.org

Ready to get started?Download WordPress

Forums

Running multisite off root, when install in subfolder (7 posts)

  1. domino5702
    Member
    Posted 3 years ago #

    I have a functioning WordPress Multisite with 2 Blogs - for different language versions, as subdomains: my-site.de/my-blog/ and my-site.de/my-blog/english/. There is an "old" website sitting in root (my-site.de), which is the main reason, why I installed WordPress in a sub-folder. Now, I understand that I cannot run a Multisite with subdomains off root. The way I imagine that it might work, is one of two possibilities:

    1. a permanent redirect in root, to point to the wordpress installation
    2. copying WordPress files into root, adjusting the database tables

    I am not sure, if the second option is really feasible (but I would prefer that over the redirect), has anybody tried to do this, and what do I have to be aware of and keep in mind?

    If push comes to shove, I can clean out the old site and install WordPress there, set up multisite and all plugins etc. Now, if I point it to the database holding all information related to the present (subdomain) installation, could that possibly be made to work? What would I need to do, to get it working?

    Or, are there other possibilities that I have not thought of?

    We are within one week of going live with the site, so starting all over is not really an option.

    Any input, advice, help is appreciated.

  2. You keep typing subdomains when I think you really mean subfolders, correct?

    I woudl move everything up into the root. Yeah, it;s gonna take some grunt work fixing links in the db, but it'll be worth it going forward.

  3. domino5702
    Member
    Posted 3 years ago #

    Thanks Andrea, yes, you are correct. WordPress is sitting in a subfolder.

    OK, so I know, I need to fix the two URLs in the wp-options table, but I have no idea about what needs to be tidied up in relation to the multisite. As far as links within the two blogs of the multisite are concerned, I have pretty much taken care, so links are of the bloginfo ('siteurl') or bloginfo ('template_directory') type from the start, so those should not give me too many headaches.

    So, if you could point out, which other tables in the database I need to look into and fix?

    Thanks again.

  4. Honestly, I just go into phpmyadmin and do a search for the old location. That'll show you the ones you've missed.

  5. domino5702
    Member
    Posted 3 years ago #

    Andrea, thank you again.

    Now, as far as wp-config.php is concerned, I have these two lines, where I am not certain, if they can stay:

    define( 'SUBDOMAIN_INSTALL', false );
    $base = '/my-subfolder/';

    I am not sure, so, if you could help me with that?

  6. Remove the $base line. If you're not in the subfolder anymore, you don't need it.

  7. Actually, it should be

    $base = '/';

Topic Closed

This topic has been closed to new replies.

About this Topic