• I migrated a fairly large multisite network to a local install, running MAMP. I’ve used MAMP with singlesite installs before, but this is my first attempt at multisite and I’m getting a redirect loop when I attempt to access the local site. Any ideas?
    Thanks.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Redirect loops with WordPress always seem to be related to one of several things:

    The URL settings in the wp_options table (the config parts of WordPress)
    Apache/htaccess forced URLs of the site (e.g. if Apache forcibly redirects to a specific URL)

    Aside from those, the only other thing it could be is a plugin redirecting or a cached copy of the site conflicting with the “live” copy on your local MAMP, but in practice, these redirects are usually some combination of htaccess/Apache settings and the hard coded URL of WordPress in the WordPress database.

    When you pulled the site down to your MAMP, did you change the primary URL of the site? E.g. going from example.com to example.dev or anything like that?

    Thread Starter Jason McArtor

    (@jasonmcartor)

    Vrazer,
    Thanks for your response.

    I did the full search-replace. On my second attempt, I used the WP Migrate DB Pro plugin (https://deliciousbrains.com/wp-migrate-db-pro/) to modify the database.

    On the local site, I’m not even able to log into the WP dashboard.

    Hmmm.. it could be a few other things. Do you get any errors anywhere on the front end of the site?

    Or if you view the page source code do you notice that the URL in the source code is different from the URL of the page you’re viewing on your site?

    Not being able to log in is usually something either related to the database setup in wp-config.php (which usually means you’re seeing errors on the front end of the site) or it’s related to cookies. If it’s a cookie problem, then my guess is that there would be differences in the domains in the address bar vs the ones in the source code.

    Thread Starter Jason McArtor

    (@jasonmcartor)

    I just get the redirect loop error in Chrome. I can’t even view source, it just keeps popping up the error.

    Given that, you definitely have one of the above items going on. We’ve run into that before with WordPress multisite installs. It can occasionally be a pain to sort out what the exact cause is. For context, we use MAMP for some of our dev too so I know what you’re working with in terms of a development stack.

    Given what we’ve seen with this in the past, I’m guessing you’re going to have to have a pro look at this for a bit to sort out what’s going on. Of course, if this is a hobby project or something, I’m sure it’s not worth the expenditure but if it’s something that is for a client or for business purposes that justify the cost of getting it working, that would be the way to go.

    [Moderated – please do not use these forms to solicit work]

    Sorry I couldn’t be more of a help to you so far. This particular thing is very dependent on the specific setup that you’re dealing with.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Migrated Multisite to local install, redirect loop?’ is closed to new replies.