Can't access sub-sites after changing hosting

After moving multisite to new hosting(Flywheel ), we're unable to access any of the sub-sites. It either a redirect loop or the domain is completely inaccessible.

That happens for both mapped and non-mapped domains. Some of the sub-sites using Cloudflare but it happens for all of them.

  • Nastia

    Hello Larry Levenson

    Hope you are doing well!

    I've created a test subsite and it was inaccessible, this means that the core WordPress is not functioning right. Also looks like your previous installation was a subfolder, while this multisite install is with subdomain structure.

    Please change back your installation from subdirectory to subfolder by editing the wp-config.php; change define( 'SUBDOMAIN_INSTALL', true ); to define( 'SUBDOMAIN_INSTALL', false );

    And the default .htaccess for Multisite with a subfolder structure should be like this:

    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]

    Let us know how it went!

    Kind regards,
    Nastia

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.