• Resolved neilgee

    (@neilgee)


    Hi,
    I am getting a redirect loop on WP-Admin after a multisite move. Rest of the site is ok.

    Domain name changed with the interconnect search and replace script, manually reviewed wp_site and wp_blogs and they look ok.

    Changed salts, browser cache cleared – tried multiple browsers.

    htaccess

    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]

    wp-config

    /* Multisite */
    define( 'WP_ALLOW_MULTISITE', true );
    define('MULTISITE', true);
    define('SUBDOMAIN_INSTALL', false);
    define('DOMAIN_CURRENT_SITE', 'themes.wpbeaches.com');
    define('PATH_CURRENT_SITE', '/');
    define('SITE_ID_CURRENT_SITE', 1);
    define('BLOG_ID_CURRENT_SITE', 1);
    /* That's all, stop editing! Happy blogging. */

    Any thoughts?

Viewing 1 replies (of 1 total)
  • Thread Starter neilgee

    (@neilgee)

    This is now resolved originating site had subdomain created in WHM as a separate account – target site had subdomain created in cPanel – so webroot paths where different.

    Creating the subdomain on the target the same way as the original domain fixes the path issue.

Viewing 1 replies (of 1 total)
  • The topic ‘Redirect Loop on Multisite /wp-admin after move’ is closed to new replies.