• I am new to WP development, and have inherited a website with multisites for redesign,
    with very little contact with the previous designer/programmer.
    I have succesfully managed to give the website a facelift, but noticed an issue that is causing issues with upload, and haven’t been able to figure it out.

    So there are three multisites currently:

    site 1 – blog.example.com
    site 2 – example.com
    site 3 – project.example.com

    the problem is that the media library for site 2 (example.com)
    WordPress wants to upload to: https://example.com/wp-content/uploads/YYYY/MM/
    and I have to manually move it to: https://example.com/wp-content/uploads/sites/2/YYYY/MM/

    Is there a way to fix this?
    looked at trying to fix it with either with .htaccess, or wp-config.php,
    without much luck.

Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter epsilonite

    (@epsilonite)

    also in wp-config:

    # WP Engine Settings
    define(‘MULTISITE’, true);
    define(‘SUBDOMAIN_INSTALL’, true);
    define(‘DOMAIN_CURRENT_SITE’, ‘example.com’);
    define(‘PATH_CURRENT_SITE’, ‘/’);
    define(‘SITE_ID_CURRENT_SITE’, 2);
    define(‘BLOG_ID_CURRENT_SITE’, 1);

    Hi.
    Well, your main site is example.com so it should be define(‘SITE_ID_CURRENT_SITE’, 1);

    Thread Starter epsilonite

    (@epsilonite)

    @nnikoloc

    where should I change the site id?

    the site id has already been designated by the multisite program as:
    1 – blog.example.com
    2 – example.com
    3 – project.example.com

    blog.example.com used to be the main site, which was then archived after MS was installed;
    the blog.example.com is the live archived version of the main site
    and example.com is the new main site

    Wait, so you have multiple multisites, or just one multisite with single sites? If you have only one multisite, why is SITE_ID_CURRENT_SITE defined as 2? It should be 1 in that case.

    Thread Starter epsilonite

    (@epsilonite)

    It is one multiple site, however, the problem is that the (old) original main site was turned into the blogsite, and the wpstore site was turned into the main site.

    So I don’t know how to reassign the site id numbers, nor if that would solve the problem.

    I think I found the solution. You need to edit the site, and then click settings, and there are two settings Upload Path and Upload URL Path. You need to put something there (or in one of them maybe, I don’t know) in order to fix it. Experiment with this.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Multisite Redirect Problem’ is closed to new replies.