• I am trying to work on a WordPress Subdirectory Multisite network. The problem is happening that all subsites are giving 100s of 404 errors. Basically all the files and images are showing as 404. Needless to say that without any CSS, JS and images, the subsites are not displaying anything properly.

    When I try to access the wp-admin of any subsite, it gives too many redirects error. I tried to search for a solution but I could not make anything work.

    The main site and it’s wp-admin works fine without any errors.

    Here are the .htaccess code, I would really appreciate it if someone can help me.

    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>

    And the wp-config.php file has these lines

    define( 'WP_ALLOW_MULTISITE', true );
    define('MULTISITE', true);
    define('SUBDOMAIN_INSTALL', false);
    define('DOMAIN_CURRENT_SITE', 'domain.tld');
    define('PATH_CURRENT_SITE', '/');
    define('SITE_ID_CURRENT_SITE', 1);
    define('BLOG_ID_CURRENT_SITE', 1);

    The common permalink settings on the main site are set to /%postname%.php

Viewing 5 replies - 1 through 5 (of 5 total)
  • I would have looked but you didn’t provide a URL to the main site or the subdirectory site that doesn’t work.

    domain: dayschools.org

    @jnashhawkins I am having kind of the same issue. Everything works just fine until I get to the section involving Enabling the Network:

    1.Add the following to your wp-config.php file in /opt/bitnami/apps/wordpress/htdocs/ above the line reading /* That’s all, stop editing! Happy publishing. */:

    define(‘MULTISITE’, true);
    define(‘SUBDOMAIN_INSTALL’, false);
    define(‘DOMAIN_CURRENT_SITE’, ‘dayschools.org’);
    define(‘PATH_CURRENT_SITE’, ‘/’);
    define(‘SITE_ID_CURRENT_SITE’, 1);
    define(‘BLOG_ID_CURRENT_SITE’, 1);

    2. Add the following to your .htaccess file in /opt/bitnami/apps/wordpress/htdocs/, replacing other WordPress rules:

    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ – [L]

    # add a trailing slash to /wp-admin
    RewriteRule ^([_0-9a-zA-Z-]+/)?wp-admin$ $1wp-admin/ [R=301,L]

    RewriteCond %{REQUEST_FILENAME} -f [OR]
    RewriteCond %{REQUEST_FILENAME} -d
    RewriteRule ^ – [L]
    RewriteRule ^([_0-9a-zA-Z-]+/)?(wp-(content|admin|includes).*) $2 [L]
    RewriteRule ^([_0-9a-zA-Z-]+/)?(.*\.php)$ $2 [L]
    RewriteRule . index.php [L]

    Every time i enter these lines of code my site breaks, and when I retry to install multi-site it gives me the following error:

    Warning: An existing WordPress network was detected.

    I have tried countless tutorials. Maybe im missing something. Any help would be amazing!!!

    • This reply was modified 4 years, 7 months ago by oketaojok.
    • This reply was modified 4 years, 7 months ago by oketaojok.

    @oketaojok

    Please start your own topic as your problem may be completely different from the original poster’s.

    I will say that since WP is telling you the network is detected you probably already have a working Multisite so maybe try adding a subsite now if you can and report back any further issues in that new topic.

    Thanks!

    @jnashhawkins sorry i’m pretty new to this. I do not have a working multisite, and therefore cannot add a subsite.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Multisite subsites not working properly’ is closed to new replies.