• Resolved neilgee

    (@neilgee)


    I have a subdomain multisite with subdirectories for the multisites. (version 4)

    I migrated to another URL (also a subdomain) and changed the URL via Migrate DB and also tried a version via the interconnect/IT script.

    I can’t access wp-admin – get a redirect loop, but all the sites are visible and operational.

    My htaccess is

    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]

    My wp-config.php Multisite details are:

    /* 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 7 replies - 1 through 7 (of 7 total)
  • Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    ?????? Advisor and Activist

    Delete ALL your cookies on your browser.

    Thread Starter neilgee

    (@neilgee)

    Tried that, also tried connecting from a computer that never browsed to the site before.

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    ?????? Advisor and Activist

    I went to https://themes.wpbeaches.com/wp-admin and got this in my redirect checker:

    https://themes.wpbeaches.com/wp-admin/
    302: Temporary redirect to https://themes.wpbeaches.com/wp-admin/

    Try disabling .htaccess entirely for a go…

    Thread Starter neilgee

    (@neilgee)

    When I disable .htaccess I get a Server 500 error across the site, so i re-enabled

    I can get to the login screen if I try wp-login.php but on login it also gets into too many redirects.

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    ?????? Advisor and Activist

    When I disable .htaccess I get a Server 500 error across the site, so i re-enabled

    Full stop. On ALL SITES? On everything? Even the main site?

    If so, you have a big problem, because the main site (and network admin) DO NOT rely on .htaccess

    Thread Starter neilgee

    (@neilgee)

    Hi Mika – thanks for your help on this.

    I ran the MigratePro db pro again this time set the destination URL domain to be a regular URL, not a subdomain and it worked fine.

    So it turns out the initial subdomain was created as a new account in the WHM interface of cPanel and the new destination was also created this way – somehow it doesn’t migrate.

    So i created the destination as a cPanel subdomain instead, so same URL but different webroot – did the Migrate DB and it works ok.

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    ?????? Advisor and Activist

    YAY! There you go ?? Gotta watch out for the cpanel defaults. They want you to put things in folders :/

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Can't access wp-admin after Multisite Migration’ is closed to new replies.